Re: compiler error

From: Chris Proctor (cjp@minotaur.labyrinth.net.au)
Date: 08/12/99


At 05:25 PM 8/12/99 -0700, you wrote:
>rama wrote:
>
> > i need help with a strange error in linux. i try to make it under linux
> and i
> > receive this output
> >
> > In file included from mobcmd.c:36:
> > structs.h:353: warning: `/*' within comment
>
><snip>
>
>It looks like you probably deleted a closing comment (*/) by accident from
>structs.h.  It would be on the last comment that comes before line
>353.  Fix that
>and most (if not all) of the errors will go away.

The "/* within comment" error in my experience has been due to an attempt
to nest comments.
That might be ok in a windows compiler, but nesting comments on Linux.
The most common reason for me doing this myself is commenting out a swathe
of code that I'm rewriting, and not noticing there's a comment within the
swathe.

Even if you "correctly" nest comments (/*  blah /* blah2 */ */) it will
complain loudly.
Regards,
Chris Proctor (Deathblade, Implementor of DominiaMUD)
MUD Homepage: http://www.labyrinth.net.au/~cjp


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST