LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (http://www.linuxquestions.org/questions/aix-43/)
-   -   Error creating library file from object files using xlc (http://www.linuxquestions.org/questions/aix-43/error-creating-library-file-from-object-files-using-xlc-305434/)

montylee 03-24-2005 07:18 AM

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

crabboy 04-06-2005 11:55 PM

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

montylee 04-07-2005 08:44 AM

Thanks, the issue is resolved now.
Basically, i removed a line of code from my source file and it worked.


All times are GMT -5. The time now is 01:09 AM.