standalone cpp linked with libcpp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Does someone  has a 'demo' example of a main() calling libcpp making a
kindof standalone cpp.
I need to write a 'special' cpp that would produce .i files to be
given to cc in a later phase.
At the moment I an doing cc -E .c to get .i file then process the .i
file then give it to cc
I'd like combine the cpp and my own post processing before giving the .i to cc.

I think I got the picture about calling init() and feeding an initial
.c file, but I didn't catched yet how to feed my main() argv[] -D...
-U... into the libcpp, (or other libccp options).

Thanx for any advises
Cheers,
Phi




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux