This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: execing 'gcc' from within Java application
- From: MNewcomb at tacintel dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 20 Aug 2002 10:16:29 -0400
- Subject: RE: execing 'gcc' from within Java application
Please Help!
> I have a set of classes that use JNI. I was using make to
> build them. I am switching to Ant. When Ant (a Java process)
> execs off gcc, gcc totally screws with my JNI code. It starts
> replacing all my jobject and jstring variables with
> java::lang::Object and java::lang::String.
>
> It is just happening when I invoke gcc from within ant. I
> check the command line from Ant and it's the exact same thing.
> In fact, I cut and paste from Ant output to an xterm and
> everything compiles fine.
>
> So, how do I tell gcc to just compile the code?
>
> Thanks,
> Michael