This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: comments dont compile


"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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]