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


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

AIX: linking xlc libs with gcc



Hi,

I created a shared lib on AIX 4.3.3 with 

xlC -qmkshrobj -o libtest *.o

If I link a new program with this lib and xlC everything is fine.

But if I use g++ for the same problem, there are a lot of errors like:

ld: 0711-317 ERROR: Undefined symbol: .String::indexOf(String const &) const
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status

Since all system libs on AIX are most probably also created with xlC and
linking with g++ is no problem, there should be a way of generating g++
compatible libs with xlC?
But how?

Wolfgang

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