🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2780

Re: Imake question

#2780
From: Norman Diamond
Date: Mon, 22 Apr 1991 03:35
25 lines
1792 bytes
In article <9160001@hpldsla.sid.hp.com> manoj@hpldsla.sid.hp.com (Manoj Joshi) writes:
>Question on imake:
If it were, it wouldn't belong here.  However, as a question on ANSI C...

>file name: lineno: undefined preprocessor directive
>This error is observed whenever in the include file the comment is 
>preceded by /**/# to protect it from cpp.

An ANSI compilation changes all comments to spaces before it processes
#directives.  Furthermore, an ANSI preprocessor accepts #directives that
have whitespace (including spaces, tabs, etc.) before the #.  So, your
# is not protected from an ANSI preprocessor.

>This was according to the man page for imake.
>Anyone has an idea why this error is given. I have lots of code which 
>is using this /**/# convention, so there must be something to solve this.

Use the same non-ANSI compiler that was used by the author of the imake
man page.  (This might sound cynical but it is the correct answer.)

If you're willing to edit your source code, then there are also other
correct answers.
--
Norman Diamond       diamond@tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Technical Details
Message-ID: <1991Apr22.033506.2320@tkou02.enet.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!tkou02.enet.dec.com!jit345!diamond
References: <9160001@hpldsla.sid.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!tkou02.enet.dec.com!jit345!diamond
From: diamond@jit345.swstokyo.dec.com (Norman Diamond)
Newsgroups: comp.std.c
Subject: Re: Imake question
Message-ID: <1991Apr22.033506.2320@tkou02.enet.dec.com>
Date: 22 Apr 91 03:35:06 GMT
References: <9160001@hpldsla.sid.hp.com>
Sender: usenet@tkou02.enet.dec.com (USENET News System)
Reply-To: diamond@jit345.enet@tkou02.enet.dec.com (Norman Diamond)
Organization: Digital Equipment Corporation Japan , Tokyo
Lines: 25