3 ms·
Not in front of a computer, but have you tried -std=gnu99
by niggler 14y ago
Not in front of a computer, but have you tried -std=gnu99
- DiabloD3 14y agoThats a bad way of writing code, to be honest. On projects I run, code has to be warning free with -Wall -Wextra -pedantic -std=c99
- kelnos 14y agoIt's not bad at all, at least if you've made the conscious decision to write GNU C and not std C, and accept that non-gcc compilers (except maybe clang) may not be able to compile your code. Unfortunately, though, I believe one of the -std=gnuXX variants is the default, so most people don't make that a conscious decision.
- niggler 14y agognu89 is the default. gnu99 will be the default when C99 is fully implemented (from the manpage, search for /-std=$/)
- simias 14y agoC99 is still not fully implemented in GCC? What's missing?
- TorKlingberg 14y agoThere is a list at http://gcc.gnu.org/c99status.html http://gcc.gnu.org/c99status.html
- Nav_Panel 14y agoJust tried it now. Still compiles/runs without errors.