Mail Archives: djgpp/1997/10/17/22:01:14
Ralf Haueisen <ubas AT rzstud1 DOT rz DOT uni-karlsruhe DOT de> wrote:
> Hello.
> A few days ago I donwloaded djgcc,
That's DJGPP.
> but neither RHIDE nor GCC
RHIDE is an integrated development environment. gcc is the compiler. RHIDE
calls gcc to compile your code. RHIDE is not a compiler.
> accepted /* comment /* comment */ comment */. The last comment was treated as
> code.
As is the correct behavior. Comments in C do *NOT* nest. Your first "*/"
ends the comment (a new one was NOT started by the second "/*"; it was just
part of your comment) and "comment */" stays in the code.
> I searched for any settings but did not found. Maybe someone can help
> me.
Don't write nested comments. If you are trying to comment out a block of code
that contains comments, use "#if 0" at the beginning of the block and "#endif"
at the end.
--
[- firewind -]
[- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -]
[- "You're just jealous because the voices talk to -me-." -]
[- Have a good day, and enjoy your C. -]
[- (on a crusade of grumpiness where grumpiness is due) -]
- Raw text -