can't run *.class with GIJ

Jeff Sturm jsturm@one-point.com
Sun Oct 20 09:37:00 GMT 2002


On 2002年10月20日, Utku Ozcan wrote:
> GIJ doesn't seem to run *.class files by me.

gcj doesn't have a bytecode interpreter for Solaris yet. Soon, perhaps.
> unix> gcj -shared -o HelloWorldApp.so HelloWorldApp.java
> Text relocation remains 	referenced
> against symbol		 offset	in file
> <unknown> 0xb4 	/var/tmp/ccQdiPmu.o
...
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status

You need -fPIC to compile a DSO.
Jeff


More information about the Java mailing list

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