This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

extracting implicit arguments


hi there,

I'm looking for a way to obtain all CPPFLAGS that
are implicitely used by the compiler, such as header
search paths etc.
I'm working on a C++ parser that can be used with
gcc's preprocessor as well as it's own built-in one.
In the latter case, we have to specify all the search
paths such that the actual code as seen by the parser
is identical.

What is the suggested way of doing this ? I could
invoke 'gcc -v dummy.cc' and parse the output, but looks
like a hack, that might not even be portable (across
various gcc versions).

Regards,
		Stefan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]