This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: comments dont compile
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: "David Paull" <etinaznat at hotmail dot com>
- Cc: gcc-help at gnu dot org
- Date: 08 Mar 2003 14:40:06 -0800
- Subject: Re: comments dont compile
- References: <F53i18VVvnc5ikVT5Ba0002deaf@hotmail.com>
"David Paull" <etinaznat at hotmail dot 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)