comments dont compile
LLeweLLyn Reese
llewelly@lifesupport.shutdown.com
Sat Mar 8 22:44:00 GMT 2003
"David Paull" <etinaznat@hotmail.com> writes:
> hello, i am porting code from windows to linux gcc
>
> apparently, gcc 3.2 doesnt know about comments starting with //
>
> has anyone encountered this problem?
> omg, every comment in the code uses //, and not /* */
>
> what can i do?!?!?!?
You can read:
gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/C-Dialect-Options.html#C%20Dialect%20Options
which tells you which command line arguments disable // coments
feature (it's on by default, but see -ansi and -pedantic) and
which commands enable it (see -std=c99)
More information about the Gcc-help
mailing list