home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!yale.edu!newsserver.jvnc.net!netnews.upenn.edu!retina.anatomy.upenn.edu!joe
- From: joe@retina.anatomy.upenn.edu (Joe Panico)
- Newsgroups: comp.os.linux
- Subject: gnu cpp doesn't like my imake template files.
- Message-ID: <106279@netnews.upenn.edu>
- Date: 23 Jan 93 14:38:20 GMT
- Sender: news@netnews.upenn.edu
- Organization: Dept. of Neuroscience, U. of Pennsylvania
- Lines: 33
- Nntp-Posting-Host: retina.anatomy.upenn.edu
-
-
- Hi,
-
- The imake template files (e.g. Imake.tmpl) under X in the SLS .99p2
- distribution begin with something like this:
-
- #define XCOMM #
-
-
- XCOMM here are some comments
- XCOMM here are some comments
- XCOMM here are some comments
- .
- .
- .
-
- trying to define a comment macro with the preprecessor. If I use the
- gnu cpp to process any imake template files, I get an error that says
- something like:
-
- cpp: # no command follows macro identifier (or something)
-
- It looks like the cpp insists that only cpp commands follow a naked #
- symbol. However, escaping the # symbol seems to solve the problem-- e.g.
-
- #define XCOMM \#
-
- then produces comment lines where XCOMM macro appears. Can anyone tell
- me why the template files that come with the system don't work for me?
- Any clues would be much appreciated.
-
- Joe Panico
- joe@retina.anatomy.upenn.edu
-