help-make
[Top][All Lists]
Advanced

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

Re: make can not find .cpp file, any general comments or suggestions to


From: Lin George
Subject: Re: make can not find .cpp file, any general comments or suggestions to debug?
Date: Wed, 3 May 2006 01:45:19 -0700 (PDT)

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" <address@hidden> wrote:

> %% Lin George <address@hidden> 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 <address@hidden>          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 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]