User forums > Using Code::Blocks
Problem compiling Comments
NanoGoner:
I have been trying to compile a C program using "//" for comments. The error message for the line
// 3d.c
is
"exected identifier or '(' before '/' token"
If I change the line to
/* 3d.c */
it compiles fine. Can anyone tell me what's going on??
p2rkw:
There's no line comment in c.
oBFusCATed:
--- Quote from: p2rkw on November 27, 2012, 07:52:51 pm ---There's no line comment in c.
--- End quote ---
This is partially true, because they are supported in C99 mode.
NanoGoner:
Thank you both. I presume by C99 mode you mean C++. Can you tell me how to switch modes. I can't find it in the manual.
NanoGoner:
Thank you both. I presume by C99 mode you mean C++. Can you tell me how to switch modes. I can't find it in the manual.
There's nothing in the code that wouldn't compile under C++
Navigation
[0] Message Index
[#] Next page
Go to full version