Thanks Paul,

> CPPFLAGS is included in both CFLAGS and CXXFLAGS,
> plus separating out

I can not find where in the manual it is mentioned
that CPPFLAGS is included in both CLAGS and CXXFLAGS.
Could you help to point it out please?


regards,
George

--- "Paul D. Smith" <[EMAIL PROTECTED]> wrote:

> %% Lin George <[EMAIL PROTECTED]> writes:
> 
>   lg> I have solved this problem today. It is caused
> by
>   lg> CFLAGS variable, which should be CXXFLAGS
> variable in
>   lg> g++ -- I mis-defined the variable name CFLAGS
> in g++.
> 
>   lg> In my CFLAGS, I specified header file path
> (-I), so
>   lg> related header files can not be found.
> 
> In general, you should add preprocessor flags (like
> -I and -D) to the
> CPPFLAGS variable, not CFLAGS or CXXFLAGS.
> 
> CPPFLAGS is included in both CFLAGS and CXXFLAGS,
> plus separating out
> these flags allows you to use them with other tools
> which might need
> them to parse code, such as lint, makedepend, or
> whatever.
> 
> -- 
>
-------------------------------------------------------------------------------
>  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

Reply via email to