www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/22/09:33:10

From: Alex Vinokur <alexvn AT bigfoot DOT com>
Newsgroups: comp.os.msdos.djgpp,gnu.gcc.help
Subject: Preprocessing with gcc
Date: Wed, 22 Aug 2001 16:28:21 +0200
Organization: Scopus Network Technologies
Lines: 35
Message-ID: <3B83C185.C107E36@bigfoot.com>
NNTP-Posting-Host: gateway.scopus.co.il (194.90.203.161)
Mime-Version: 1.0
X-Trace: fu-berlin.de 998486914 12095465 194.90.203.161 (16 [79865])
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

===========================================
gcc version 2.95.3 20010315/djgpp (release)
Windows98
===========================================

I would like to preprocess some file using gcc.

  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 ?
Can we avoid this error message (any additional options) ?

  =====================
  Alex Vinokur
    mailto:alexvn AT bigfoot DOT com
    http://up.to/alexvn
    http://go.to/alexv_math
  =====================


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019