This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: gij with gcc 2.95.2 (was: Re: internal error - SP mismatch)
>>>>> "James" == James CE Johnson <jcej@tragus.org> writes:
James> But now, I'm embarrased to say, I can't seem to figure out how
James> to use the darned thing:
James> [jcej@node04 T3]$ gcj -shared -c -o HelloWorld.so HelloWorld.java
James> [jcej@node04 T3]$ gij HelloWorld
You can't use both `-shared' and `-c', but gcc doesn't tell you that
(oops). Omit the -c and this will work.
Or, compile all the way to an executable:
gcj --main=HelloWorld -o HelloWorld HelloWorld.java
Or, compile to bytecode and interpret:
gcj -C HelloWorld.java
gij HelloWorld
Tom