I am using gcc
(Unbuntu 4.4.1-4unbuntu9
) to compile a program that I'm writing, but it seems to vomit whenever it sees a // comment in my code, saying:
interface.c :##: error: expected expression before â/â token
Does the gcc
compile mode I'm using forbid //
comments?
$ gcc -g -ansi -pedantic interface.c structs.h -c -I. -I/home/me/project/h
Why?