gij with gcc 2.95.2 (was: Re: internal error - SP mismatch)

Tom Tromey tromey@cygnus.com
Fri Mar 24 14:58:00 GMT 2000


>>>>> "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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /