Preprocessor woes

Mark Kettenis kettenis@wins.uva.nl
Fri Jan 5 13:34:00 GMT 2001


When compiling glibc for the Hurd, during generation of the .map
files, I get the following error messages:

   :1163: parse error
   :1169: parse error
   :1258: parse error
   :1267: parse error
   :1295: parse error
   :1303: parse error
   :1342: parse error

The line numbers are exactly the lines where constructs like

   #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)

occur.  Since the SHLIB_COMPAT macro uses the ISO C ## concatenation
operator, -traditional messes things up.  Is there any chance at
convincing the GCC folks to provide a preprocessor that's backwards
compatible with cccp?

Mark


More information about the Gcc mailing list