This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
execing 'gcc' from within Java application
- From: MNewcomb at tacintel dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 19 Aug 2002 17:16:02 -0400
- Subject: execing 'gcc' from within Java application
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