Thread: Compile time error

  1. #16
    j_spinto
    Guest
    do you know any C99 nice compiler?

  2. #17
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > do you know any C99 nice compiler?
    http://www.comeaucomputing.com/

    Since you're not using anything which is genuinely useful in C99, you're much better off sticking to C89 mode for your C programs.
    All you're doing with C99 at the moment is making your program needlessly less portable.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #18
    j_spinto
    Guest
    oh... is c99 less portable than c89?
    its just because its more recent isnt it?
    if so, is ansi more portable than c89?

  4. #19
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by j_spinto
    oh... is c99 less portable than c89?
    its just because its more recent isnt it?
    if so, is ansi more portable than c89?
    yes, its becuase its more recent, also IMO some of the features of c99 just make the language more bloated and unnecessary.
    ainsi C is considered C89.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  5. #20
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    No. ANSI C is considered any version of C which conforms to the ANSI standard. IE: C89, C90, C99, etc. All of those standards are "ANSI C". They're just different revisions of it.
    C: A Reference Manual, Fifth Edition
    Page 6, pharagraph 4:

    Officially, "Standard C" is C99. However, we use the term Standard C to refer to
    features and concepts of C89 that continue through C99. Features of C that exist only in C99
    will be identified as such so that programmers using C89 implementations can avoid them.
    At any rate, "ANSI C" would be the latest revision of the C standard, or whatever version is being referenced in the source cited.

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #21
    j_spinto
    Guest
    so all the ANSI versions have the same portability or there is some differences between C89, C90 and C99 (the 3 ISO / ANSI standards) - the 94 isn't I think, and I've read about it.
    If so, which is the most portable and what are the differences?

  7. #22
    j_spinto
    Guest
    You have already said that C89 and C99 are the ANSI's... I think it is C99 becase it's more recent
    but C89 is portable because you can code in C99 using C89 refferences
    is it that?
    is there any difference between C89/C90 ?

  8. #23
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by j_spinto
    You have already said that C89 and C99 are the ANSI's... I think it is C99 becase it's more recent
    but C89 is portable because you can code in C99 using C89 refferences
    is it that?
    is there any difference between C89/C90 ?
    I think Quzah answered that question as to what ansi is. C99 and C89 are basically diff standards the compiler should adhere to and support, but most compilers only support c89/c90 and only a little if any of c99.
    There isn't so much differences between the two as there is more additons and features. Its sort of like an "upgrade" to the language.

    I didn't want to confuse you by saying ainsi C is c89. as was pointed out its any that is supported or endorsed by the committee, i only meant C89 because it is the most widely supported.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  9. #24
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    http://en.wikipedia.org/wiki/C89#ANSI_C_and_ISO_C

    C89, C90:
    In 1983, the American National Standards Institute (ANSI) formed a committee, X3J11, to establish a standard specification of C. After a long and arduous process, the standard was completed in 1989 and ratified as ANSI X3.159-1989 "Programming Language C". This version of the language is often referred to as ANSI C. In 1990, the ANSI C standard (with a few minor modifications) was adopted by the International Organization for Standardization (ISO) as ISO/IEC 9899:1990.
    [edit]http://gcc.gnu.org/onlinedocs/gcc/Standards.html
    The original ANSI C standard (X3.159-1989) was ratified in 1989 and published in 1990. This standard was ratified as an ISO standard (ISO/IEC 9899:1990) later in 1990. There were no technical differences between these publications, although the sections of the ANSI standard were renumbered and became clauses in the ISO standard. This standard, in both its forms, is commonly known as C89, or occasionally as C90, from the dates of ratification.
    Last edited by Dave_Sinkula; 05-03-2005 at 01:54 PM.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  10. #25
    j_spinto
    Guest
    thanks

  11. #26
    j_spinto
    Guest
    btw, the fact of being compactible with less compilers interfers in its portability?

  12. #27
    j_spinto
    Guest
    dont worry because I dont think c99 advantages are just the // and the int declaration in the loop :P lol..
    I think the long long and those things and BOOLEAN type are quite useful
    If im using C99 am i loosing the programm performance and portability?
    hugs, Joćo

  13. #28
    j_spinto
    Guest
    please answer :P

  14. #29
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Boy you're damn lucky there's no reputation now. I believe isn't the first time I've seen you simply bump your posts. Read the forum guide lines. We don't just sit around all day waiting to answer your questions. You see, you just aren't that important.

    I could answer your question, but just to prove the point, I won't.


    Quzah.
    Hope is the first step on the road to disappointment.

  15. #30
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70
    Quote Originally Posted by j_spinto
    dont worry because I dont think c99 advantages are just the // and the int declaration in the loop :P lol..
    I think the long long and those things and BOOLEAN type are quite useful
    If im using C99 am i loosing the programm performance and portability?
    hugs, Joćo
    Here's something for you...
    -- Add Your Signature Here --

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  3. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM