This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: can't run *.class with GIJ


On Sun, 20 Oct 2002, 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]