Article View: gnu.gcc.help
Article #51319// Comments
From: Peter B. Harrington
Date: Thu, 03 Jun 1993 14:34
Date: Thu, 03 Jun 1993 14:34
19 lines
1355 bytes
1355 bytes
Hi, I am a new user to gcc. I am trying to port code
from Borland C 3.1 to a sun sparc with GCC. Unfortunately, I
have many comment lines using // instead of /* */. The //
comments seem to generate a parse error on compilation.
1) Is there a compiler switch that gives // compatability in the
source code?
2) Has someone else had this problem before, and did they put to
together a script that replaces // with /* */? If so would
someone send me a copy.
Thanks in advance.
Pete
A
Technical Details
Message-ID:
<1993Jun3.143416.29980@oucsace.cs.ohiou.edu>Path:
arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!ifmsun8.ifm.uni-hamburg.de!news.DKRZ-Hamburg.DE!dscomsa!dxcern!mcsun!uknet!bnr.co.uk!pipex!zaphod.crihan.fr!univ-lyon1.fr!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!europa.eng.gtefsd.com!news.ans.net!malgudi.oar.net!sun!oucsboss!oucsace!helios!harringShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cb2e5a2b481d0b4e,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-04 03:21:51 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!ifmsun8.ifm.uni-hamburg.de!news.DKRZ-Hamburg.DE!dscomsa!dxcern!mcsun!uknet!bnr.co.uk!pipex!zaphod.crihan.fr!univ-lyon1.fr!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!europa.eng.gtefsd.com!news.ans.net!malgudi.oar.net!sun!oucsboss!oucsace!helios!harring From: harring@helios.phy.ohiou.edu (Peter B. Harrington) Subject: // Comments Message-ID: <1993Jun3.143416.29980@oucsace.cs.ohiou.edu> Sender: harring@helios.phy.ohiou.edu Organization: Ohio University ASCGL, Athens Distribution: gnu.gcc.help Date: Thu, 3 Jun 1993 14:34:16 GMT Lines: 20