* RE: comments dont compile
@ 2003-03-08 9:40 Ajay Bansal
0 siblings, 0 replies; 4+ messages in thread
From: Ajay Bansal @ 2003-03-08 9:40 UTC (permalink / raw)
To: David Paull, gcc-help
What is the error on compilation???
-----Original Message-----
From: David Paull [mailto:etinaznat@hotmail.com]
Sent: Saturday, March 08, 2003 3:00 PM
To: gcc-help@gnu.org
Subject: comments dont compile
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?!?!?!?
thanks
dave
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: comments dont compile
2003-03-08 9:30 David Paull
2003-03-08 11:20 ` Nathan Sidwell
@ 2003-03-08 22:44 ` LLeweLLyn Reese
1 sibling, 0 replies; 4+ messages in thread
From: LLeweLLyn Reese @ 2003-03-08 22:44 UTC (permalink / raw)
To: David Paull; +Cc: gcc-help
"David Paull" <etinaznat@hotmail.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)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: comments dont compile
2003-03-08 9:30 David Paull
@ 2003-03-08 11:20 ` Nathan Sidwell
2003-03-08 22:44 ` LLeweLLyn Reese
1 sibling, 0 replies; 4+ messages in thread
From: Nathan Sidwell @ 2003-03-08 11:20 UTC (permalink / raw)
To: David Paull; +Cc: gcc-help
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* comments dont compile
@ 2003-03-08 9:30 David Paull
2003-03-08 11:20 ` Nathan Sidwell
2003-03-08 22:44 ` LLeweLLyn Reese
0 siblings, 2 replies; 4+ messages in thread
From: David Paull @ 2003-03-08 9:30 UTC (permalink / raw)
To: gcc-help
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?!?!?!?
thanks
dave
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-08 22:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-08 9:40 comments dont compile Ajay Bansal
-- strict thread matches above, loose matches on Subject: below --
2003-03-08 9:30 David Paull
2003-03-08 11:20 ` Nathan Sidwell
2003-03-08 22:44 ` LLeweLLyn Reese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).