Mail Archives: djgpp/1996/08/14/02:45:11
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 -