Is there a way to run only the preprocessor part of a c++ compiler?

try cpp -xc++

the -x option can help you

see http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html#Overall-Options

Vincent


Cheers,
Andrew

On 15 Apr 2009, at 19:27, Michael Jennings wrote:

On Wednesday, 15 April 2009, at 19:00:20 (+0100),
Andrew Williams wrote:

Hmm there is a nice sed script here:
http://sed.sourceforge.net/grabbag/scripts/remccoms3.sed

that works as far as I can see to strip both C and C++ comments - can
we assume an installation of sed?
Or could it be called only on darwin (or other non c++ understanding
distros)?

Any thoughts welcome.

Have you tried compiling with the C++ compiler?

Michael

--
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/
<[email protected]>
Linux Server/Cluster Admin, LBL.gov       Author, Eterm
(www.eterm.org)
-----------------------------------------------------------------------
"If the President knowingly lies to the American people, he should
 immediately resign."                         -- Bill Clinton in 1974

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
Message délivré par le serveur de messagerie de l'Université d'Evry.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to