This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ddd blows out the compiler :(
- To: root <vikki at oz dot net>, gcc-bugs at gcc dot gnu dot org
- Subject: Re: ddd blows out the compiler :(
- From: Eric Christopher <echristo at cygnus dot com>
- Date: Fri, 21 Jul 2000 11:29:31 -0700
- References: <397803B9.296B8245@oz.net>
> c++ -DHAVE_CONFIG_H -DNDEBUG -O2 -g -W -Wall -trigraphs -c
> -I. -I. -I./.. -isystem /usr/X11R6/include -o show.o show.C
> In file included from show.C:51:
> status.h: In method `_StatusMsg::_StatusMsg(const string
> &)':
> Thanks very much & take care, Vikki.
> P.S. To the gcc folks: Just what should I look for to fill
> this requirement:
> Preprocessed output of the source file that caused the
> compiler error, even if the source code can be downloaded
> from elsewhere
>
Since you asked:
This means the preprocessed .i (or .ii for c++) file that exists
after cpp runs on the file. There are a couple of ways of getting
this file:
1) use -E in the compile line above and redirect the output
to a file
2) use -save-temps in the compile line above, the .i/.ii files
will be part of the files left.
The easiest is perhaps -save-temps. You can also add it to a
make command line like this:
make CFLAGS="-save-temps" <target>
where <target> is the original target of the makefile, e.g. "all"
-eric