www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/14/02:45:11

Xref: news2.mv.net comp.os.msdos.djgpp:7231
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Parse Errors! Argh! help me please
Date: Tue, 13 Aug 1996 17:49:25 -0700
Organization: Alcyone Systems
Lines: 23
Message-ID: <32112295.48558E43@alcyone.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960813092543 DOT 28748S-100000 AT is>
NNTP-Posting-Host: annex-p136.meer.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii wrote:

> That is incorrect.  GCC 2.7.0 and later also supports C++-style comments
> in a C program.  If the version of GCC that's used is earlier (DJGPP v2.0
> comes with GCC 2.7.2), then there is a switch to GCC you can use to make
> it support C++-style comments, like so:
> 
>        gcc -c -Wp,-lang-c-c++-comments myprog.c
> 
> For more details on this, read section 8.3 of the DJGPP FAQ list
> (available as v2/faq201b.zip from the same place you get DJGPP).

A better idea, though, is to not use C++-style comments in a C program in the
first place.  It's like trying to use shell script comments in a FORTRAN
program; they're two different things.

(If you had to inherit code, that's at least one reason not to be keen on
converting comment styles.)

-- 
Erik Max Francis, &tSftDotIotE   http://www.alcyone.com/max/   max AT alcyone DOT com
San Jose, California   ICBM 37 20 07 N 121 53 38 W   R^4: the 4th R is respect
War's a game which were their subjects wise/Kings would not play at. -- Cowper

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019