This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: -R gcc option?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Anthony Green <green at redhat dot com>
- Cc: Phil Edwards <phil at jaj dot com>, Carlos Pereira<carlos at pehoe dot civil dot ist dot utl dot pt>, gcc at gnu dot org, java at gcc dot gnu dot org
- Date: Fri, 12 Apr 2002 18:43:49 +1200
- Subject: Re: -R gcc option?
- References: <200204111824.TAA04590@pehoe.civil.ist.utl.pt> <20020411152809.A28097@disaster.basement.lan> <1018567237.1817.343.camel@dhcppc2> <3CB62B5E.7000004@waitaki.otago.ac.nz> <1018595481.1228.7.camel@dhcppc2>
Anthony Green wrote:
>I don't think I agree about -D. I don't see how it can conflict with
>the C/C++ version of -D.
>
The problem is that there is no way to set a preprocessor define if you
want to compile a C++ file with gcj, eg:
gcj Foo.java natFoo.cc -DFOO
Of course, this is possible to work around by invoking c++ separately.
regards
Bryce.