Hello
I tested on 4.0G the Compaq C compiler included in latest DTK and
noticed that its -E switch does not work correctly.
An example:
% cat a.c
#ifndef LIB_X11_LIB
#define LIB_X11_LIB -lX11
#endif
configure___ LIBX=LIB_X11_LIB
% cc -E a.c
# 1 "a.c"
configure___ LIBX= - lX11
/\
||
There is an extra white space before 'l'.
% cc -nodtk -E a.c
# 1 "a.c"
configure___ LIBX=-lX11
I read the documentation and I did not find any mentions about cc -E
being depreceated or the behaviour of the option being chaged.
Therefore I think this is a bug.
Of course I can avoid the problem by using cpp or 'cc -E -nodtk' while
using preprocessor but that is not a good solution. For example the
configure scripts produced by GNU autoconf use 'cc -E' as preprocessor
by default.
--
- Matti -
Received on Thu Dec 14 2000 - 09:58:00 NZDT