Ich benutze jetzt ein c89 Compiler. Einige Kode kann ich leider nicht Kompilieren weil die für C99 programmiert sind.
Kann jemand mir helfen? wie kann ich ein C99 compiler hunterladen?
Anmeldungsdatum: Beiträge: 5 |
Ich benutze jetzt ein c89 Compiler. Einige Kode kann ich leider nicht Kompilieren weil die für C99 programmiert sind. Kann jemand mir helfen? wie kann ich ein C99 compiler hunterladen? |
![]() Anmeldungsdatum: Beiträge: 4534 |
der Standard-gcc-4.4 mit -std=c99 tuts nicht? |
(Themenstarter)
Anmeldungsdatum: Beiträge: 5 |
Was meinst du? |
![]() Anmeldungsdatum: Beiträge: 4534 |
na den normalen GNU-C-Compiler http://gcc.gnu.org/gcc-4.4/c99status.html (bei Ubuntu Maverick ist das momentan der 4.4, wobei auch der 4.5 installierbar wäre). Der kennt -std=c99 man gcc GCC(1) GNU GCC(1) NAME gcc - GNU project C and C++ compiler SYNOPSIS gcc [-c|-S|-E] [-std=standard] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] [-Idir...] [-Ldir...] [-Dmacro[=defn]...] [-Umacro] [-foption...] [-mmachine-option...] [-o outfile] [@file] infile... Only the most useful options are listed here; see below for the remainder. g++ accepts mostly the same options as gcc. ... -std= Determine the language standard. This option is currently only supported when compiling C or C++. The compiler can accept several base standards, such as c89 or c++98, and GNU dialects of those standards, such as gnu89 or gnu++98. By specifing a base standard, the compiler will accept all programs following that standard and those using GNU extensions that do not contradict it. For example, -std=c89 turns off certain features of GCC that are incompatible with ISO C90, such as the "asm" and "typeof" keywords, but not other GNU extensions that do not have a meaning in ISO C90, such as omitting the middle term of a "?:" expression. On the other hand, by specifing a GNU dialect of a standard, all features the com- piler support are enabled, even when those features change the meaning of the base standard and some strict-conforming programs may be rejected. The particu- lar standard is used by -pedantic to identify which features are GNU extensions given that version of the standard. For example -std=gnu89 -pedantic would warn about C++ style // comments, while -std=gnu99 -pedantic would not. c99 c9x iso9899:1999 iso9899:199x ISO C99. Note that this standard is not yet fully supported; see <http://gcc.gnu.org/gcc-4.4/c99status.html> for more information. The names c9x and iso9899:199x are deprecated. ... oder was meinst du mit C99? |