[Qt-interest] Create Linux shared library with Qt behind C interface

Thiago Macieira thiago at kde.org
Sat Mar 20 14:37:40 CET 2010


Em Sábado 20. Março 2010, às 04.36.51, Jeffrey Brendecke escreveu:
> My thought was to compile the separate .o files, one with gcc and the
> other  with g++ and then link them together into the .so.
> 
> In the end, I get no errors when compiling the object files and linking
> them  together (even with -Wall), but I get such error messages when
> trying to load the library at runtime:
> 
> undefined symbol: __gxx_personality_v0

Your error was in the linking.

If you have any C++ source files, you must link with g++, not gcc.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100320/0b1366bc/attachment.bin 


More information about the Qt-interest-old mailing list