*Please read and reply* Using cpp to preprocess files (was: Re: bug in the class browser)

holle at almaden.ibm.com holle at almaden.ibm.com
Thu Jun 17 20:05:18 BST 1999



I think all compilers accept the -E switch. This should give us expanded macros,
line number information and no comments.
Lets see, ... my Linux system does exactly this ... AIX is doing it as well with
its own cc or xlc or c89. As far as I remember Solaris own cc did it this way,
too.

All of you out there, please check what the switches   -E   -P   -C are doing on
*your* non-Linux box.
Here is what gcc/cpp does:
-E    preprocess only
-C    leave comments in the preprocessed file
-P    do *not* put #line and #file information in the preprocessed file

-holger


Jonas Nordin <jonas.nordin at cenacle.se> on 17/06/99 06:12:44

Please respond to kdevelop at fara3.cs.uni-potsdam.de

To:   kdevelop at fara3.cs.uni-potsdam.de
cc:    (bcc: Holger Lehmann/Almaden/Contr/IBM)
Subject:  Re: bug in the class browser





> But tie Kdevelop directly to gcc. My understanding of KDE in general  is that
it
> is for all Unix platforms, not just Linux/FreeBSD/GNU based systems.
> Unfortunate for those people wanting to use the native compilers on Solaris or
> IRIX etc..The Solaris cpp for one does not support anything like -dM according
> to the manual page.

I guess you're right. The problem with gcc (as far as I know) is that just doing
macro expansions isn't possible. *sigh* Guess we need some other solution to
this.
Perhaps there is some simple preparser we can use. :-(

/J







More information about the KDevelop mailing list