Um, it might be that because the file is a ".c" file, that gcc thinks its ANSI C, which does not recognize "//" as a comment line (although Microsoft C++ might!).
I'd try changing the extension on the source file to ".cpp" or else edit your "//" lines to "/* blah */"....
I haven't touched gcc in years, so I may have no idea of what I'm talking about!
Syntactically correct,

Buffy