[Top][All Lists]
[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: |
Sun, 7 May 2006 00:52:45 -0700 (PDT) |
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" <address@hidden> wrote:
> %% Lin George <address@hidden> 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 <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
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Lin George, 2006/05/03
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Paul D. Smith, 2006/05/03
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Lin George, 2006/05/03
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Greg Chicares, 2006/05/03
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Lin George, 2006/05/04
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Dave Hylands, 2006/05/04
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Paul D. Smith, 2006/05/04
- Re: make can not find .cpp file, any general comments or suggestions to debug?,
Lin George <=
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Paul D. Smith, 2006/05/07
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Lin George, 2006/05/08
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Lin George, 2006/05/04
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Dave Hylands, 2006/05/04
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Greg Chicares, 2006/05/04
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Lin George, 2006/05/07
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Paul D. Smith, 2006/05/07
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Lin George, 2006/05/08
- Re: make can not find .cpp file, any general comments or suggestions to debug?, Paul D. Smith, 2006/05/08