AIX: linking xlc libs with gcc

Platzer Wolfgang wolfgang.platzer@infonova.at
Tue Nov 7 03:58:00 GMT 2000


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


More information about the Gcc mailing list