AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  creating shared libraries

    Posted Tue October 24, 2006 04:50 AM

    Originally posted by: SystemAdmin


    Hi

    I am having lots of trouble creating a shared library on AIX 5.2

    I have three static libraries, with extension .a, which I am trying to create a shared library from using the 'ld' command.

    I have read the 'AIX Linking and Loading Mechanisms' document and tried a command along the lines of:

    ld -G -bnoentry -bnogc -bexpall -o output.so -L lib/dir/one -L lib/dir/two -L lib/dir/three -llib1 -llib2 -llib3 -lc

    and this exits without any errors creating the output shared library. However, the shared library doesn't have any of the function interfaces that I am expecting (from the static libraries)...

    Can anyone help me at all?

    Thanks
    Jon
    #AIX-Forum


  • 2.  Re: creating shared libraries

    Posted Tue October 24, 2006 04:51 AM

    Originally posted by: SystemAdmin


    Forgot to say, but this is with the C language. You probably guessed that already though.
    #AIX-Forum