Creating PreProcessed file .i in g++
Claudio Bley
bley@cs.uni-magdeburg.de
Fri Nov 7 08:22:00 GMT 2003
On Fri, Nov 07, 2003 at 09:10:52AM +0100, Claudio Bley wrote:
> On Fri, Nov 07, 2003 at 10:45:00AM +0530, Lalit Seth wrote:
> > Hi all,
> >
> > I wanted to craete a preprocessed file i.e a .i extension file using g++.
> >
> > ie. g++ <options flags> filename.cpp which generates a file 'filename.i'
>
> g++ -E -o filename.i filename.cpp
Forgot to mention that you should better use .ii as extension because
.i denotes a C source file which should not be preprocessed whereas .ii
denotes a C++ source file.
--
Claudio Bley ASCII ribbon campaign (")
Debian GNU/Linux user - against HTML email X
http://www.cs.uni-magdeburg.de/~bley/ & vCards / \
More information about the Gcc-help
mailing list