On Sat, 18 Apr 2009 13:04:55 -0700 Michael Jennings <[email protected]> said:
> On Saturday, 18 April 2009, at 11:33:01 (+0100),
> Andrew Williams wrote:
>
> > Is there a way to run only the preprocessor part of a c++ compiler?
>
> Usually, yes. With gcc/g++, it's -E, but will differ for other
> compilers.
th code in question: (edje_cc_parse.c)
snprintf(buf, sizeof(buf), "cat %s | cpp -I%s %s > %s",
file_in, inc, def, tmpn);
ret = system(buf);
if (ret < 0)
{
snprintf(buf, sizeof(buf), "gcc -I%s %s -E -o %s %s",
inc, def, tmpn, file_in);
ret = system(buf);
}
simply add a try to run using g++ instead of cpp first (before the cpp one
just like it falls back to gcc if cpp doesnt work). it should work if you have
g++ installed. if that fails - fall back to cpp, then gcc.
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [email protected]
------------------------------------------------------------------------------
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