When you use cc in *nix distros is it up to date with the C99 standard?
When you use cc in *nix distros is it up to date with the C99 standard?
Depends on what compiler cc actually is.
In Linux, cc is gcc - which has pretty near all of C99's features - I don't really know which parts are missing. I'm sure it's documents on the gcc.org website.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Thanks a lot. Just what I needed.
to compile C99 in gcc, use -std=c99.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
gcc's manual says the default it gnu89, not gnu99, and that there are some conflicts between GNU's extensions and the standards. So if you want C99 compatibility fo sho, then use c99, but the default might get you by, like Mats says.
http://gcc.gnu.org/onlinedocs/gcc-4....html#Standards
Last edited by robwhit; 08-31-2008 at 01:06 PM.