Problems with GCC and/or VAX LINK

DAVID NEWALL ccdn at levels.sait.edu.au
Wed Mar 15 03:57:38 AEST 1989


ccdn at levels.sait.edu.au (DAVID NEWALL) <1680 at levels.sait.edu.au> :
> 1.  GCC doesn't allow mismatched quotation marks.  For example:
>         /* this isn't going to work */
>     doesn't compile because the comment has a single quotation mark.

***** FLAME ON *****

GCC does NOT complain about mismatched quotation marks in *comments*.
It does complain about them in `#ifdef 0'd code.  The example should
have been:

#ifdef 0
    This isn't going to work
#endif

So there!

***** FLAME OFF *****

I got confused.  Sorry.

Mind you, this is still a problem.  A program section which is
conditionally  _not_ compiled should be treated like a comment -- it
shouldn't matter what's inside the #ifdef/#endif.


David Newall                     Phone:  +61 8 343 3160
Unix Systems Programmer          Fax:    +61 8 349 6939
Academic Computing Service       E-mail: ccdn at levels.sait.oz.au
SA Institute of Technology       Post:   The Levels, South Australia, 5095



More information about the Comp.lang.c mailing list