comments dont compile

Nathan Sidwell nathan@codesourcery.com
Sat Mar 8 11:20:00 GMT 2003


David Paull wrote:
> 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?!?!?!?
// comments are not KnR nor C89. They are C++ and C99

Use the appropriate language switch.
nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org




More information about the Gcc-help mailing list