g++ fortran shared object error
Philip Cheng
cheng@pcigeomatics.com
Thu Jul 17 17:18:00 GMT 2003
Dear List:
I am using gcc 3.1 on Sun Solaris 2.8 and I am trying to build
a Fortran shared library using g++. I got the following messages
when I tried to build a simple Fortran test program
g++ -shared -o test.so test.o
Text relocation remains referenced
against symbol offset in file
<unknown> 0x8 test.o
<unknown> 0xc test.o
<unknown> 0x18 test.o
<unknown> 0x1c test.o
<unknown> 0x20 test.o
<unknown> 0x24 test.o
s_wsle 0x10 test.o
do_lio 0x30 test.o
e_wsle 0x38 test.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
Anyone knows how to solve this problem?
Thanks
Philip
More information about the Gcc-help
mailing list