On 2010-01-21 21:08-0800 David MacMahon wrote:

> Hi, Alan,
>
> On Jan 21, 2010, at 14:03 , Alan W. Irwin wrote:
>
>> Certainly, the C99 standard supports the
>> // style of comments in C code as does gcc.  Is anyone here aware of
>> any modern C compiler that does not understand the // form of comment?
>
> I certainly find the // comments convenient, but I recently ran into a small 
> annoyance on a project with a manually maintained Makefile.  I found that I 
> needed to use the gcc compiler option...
>
> -std=gnu99
>
> ...in order to be able to use // comments and some other "basics" like usleep 
> and getopt.

I just did a test of a // comment with gcc (without any special options),
and it compiled fine.  Could you try to confirm that for your version
of gcc as well?

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to