C or C++?

Bob Bell bbell at macroped.com
Sat May 28 12:18:01 EDT 2005


On Fri, May 27, 2005 at 03:24:09PM -0400, Bill Sconce wrote:
> Because of the // form.  You guessed the purpose of my joke correctly.
> But your command string was buggy.  The correct test would be:
> 
> laura$ gcc -Wall -ansi -o helloworld helloworld.c
> helloworld.c: In function `main':
> helloworld.c:5: syntax error before '/' token
> laura$ 

> (And I'm still joking.  :)    :)

For the record, C99 standardized "//" comments in C.  Compiling with
"-std=c99" produces no error, though "-std=c89" does produce an error.

    -- Bob



More information about the gnhlug-discuss mailing list