This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: comments dont compile
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: David Paull <etinaznat at hotmail dot com>
- Cc: gcc-help at gnu dot org
- Date: Sat, 08 Mar 2003 11:20:37 +0000
- Subject: Re: comments dont compile
- Organization: Codesourcery LLC
- References: <F53i18VVvnc5ikVT5Ba0002deaf@hotmail.com>
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