| delorie.com/archives/browse.cgi | search |
| Date: | Wed, 22 Aug 2001 16:51:04 +0300 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | Alex Vinokur <alexvn AT bigfoot DOT com> |
| Message-Id: | <2561-Wed22Aug2001165103+0300-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
| CC: | djgpp AT delorie DOT com |
| In-reply-to: | <3B83C185.C107E36@bigfoot.com> (message from Alex Vinokur on Wed, |
| 22 Aug 2001 16:28:21 +0200) | |
| Subject: | Re: Preprocessing with gcc |
| References: | <3B83C185 DOT C107E36 AT bigfoot DOT com> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Alex Vinokur <alexvn AT bigfoot DOT com> > Newsgroups: comp.os.msdos.djgpp,gnu.gcc.help > Date: Wed, 22 Aug 2001 16:28:21 +0200 > > Here is a file : > ------ file input.t ------ > # if (0) > abc's xyz > #endif > -------------------------- > > Here is a command line : > %gcc -P -E -x c -o output.t input.t > > Here is an error message. > input.t:2: unterminated string or character constant > > > However the reason (abc's) is within > #if (0) ... #endif > > Why does gcc detect that ? Because even code that's ifdef'ed away must be correct as far as the preprocessor is concerned. > Can we avoid this error message (any additional options) ? Yes, comment it out.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |