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 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 at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org



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