Error creating library file from object files using xlc
Hi,
I am compiling an application having multiple object files. All the object files are created successfully. But when the object files are being linked for creating library (.so) file, the following error occurs: ld: 0711-596 SEVERE ERROR: Object /home1/oie/obj/winx11.o An RLD for section 2 (.data) refers to symbol 0, but the storage class of the symbol is not C_EXT or C_HIDEXT. ld: 0711-596 SEVERE ERROR: Object /home1/oie/obj/winx11.o An RLD for section 2 (.data) refers to symbol 0, but the storage class of the symbol is not C_EXT or C_HIDEXT. make: 1254-004 The error code from the last command is 12. Stop. I am using AIX machine. The output of 'uname -a' is: AIX rook 1 5 0007831C4C00 Please help!!! |
What flags are you using to build the .o files and what flags are you using for the shared objects.
For the shared objects you should use -G and -qmkshrobj |
Thanks, the issue is resolved now.
Basically, i removed a line of code from my source file and it worked. |
Now I have this problem with gcc-8.3.0 and gas-2.36.1
Code:
Fileset Level State Description Code:
ld: 0711-596 SEVERE ERROR: Object obj-64/.libs/sockets.o |
All times are GMT -5. The time now is 10:35 AM. |