Thank you Paul!
> Look in the documentation for your C preprocessor. > Any flag that > appears in that documentation should go in CPPFLAGS. I am using Red Hat Linux Shrike 9.0 and gcc as the compiler. I thought preprocessor is a part of gcc (compiler) before, but it seems that you mean there exists another system program which only works as a preprocessor (before gcc compiles). Do you know which program in my system is working as an individual preprocessor? I would like to read through the document of the preprocessor if I know the name of the program. regards, George --- "Paul D. Smith" <[EMAIL PROTECTED]> wrote: > %% Lin George <[EMAIL PROTECTED]> writes: > > lg> A great answer! I often use -I -D -l -L to > lg> compile/build program/shared library. Do you > have any > lg> comments or suggestions about whether I should > add -I > lg> (-D, -l and -L) to CXXFLAGS or CPPFLAGS? > > lg> What about other options -Wall, -Wl, ... etc. > > Look in the documentation for your C preprocessor. > Any flag that > appears in that documentation should go in CPPFLAGS. > > Other flags belong somewhere else. > > Typically, that means -I, -D, -U (not used much) > would appear in > CPPFLAGS, and just about everything else would > appear somewhere else. > > -l, -L, and -Wl,... are _LINKER_ flags. Obviously > not appropriate for > the preprocessor. In fact, you should put these > into LDFLAGS or > similar. > > -Wall is a compiler flag. CFLAGS and/or CXXFLAGS. > > Etc. > > -- > ------------------------------------------------------------------------------- > Paul D. Smith <[EMAIL PROTECTED]> Find some > GNU make tips at: > http://www.gnu.org > http://make.paulandlesley.org > "Please remain calm...I may be mad, but I am a > professional." --Mad Scientist > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
