[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] [SIP]MD5 openssl
From:       Jarosław Białas <jarekbialas.bialy () gmail ! com>
Date:       2011-06-29 9:38:07
Message-ID: 4E0AF27F.7070905 () gmail ! com
[Download RAW message or body]

Hello

Recently I tried to use my c++ library in Python using SIP.
In SIP configuration file I added some extra libraries like QtGui,fftw3 
and ssl.
Compilation and linking pass without any warnings or errors:

g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
sipmd5testcmodule.o sipmd5testcmodule.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
sipmd5testmd5test.o sipmd5testmd5test.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
md5test.o md5test.cpp
g++ -Wl,--hash-style=gnu -Wl,--as-needed -shared 
-Wl,--version-script=md5test.exp -o md5test.so sipmd5testcmodule.o 
sipmd5testmd5test.o md5test.o -lssl

But when I try to import library:
ImportError: ./md5test.so: undefined symbol: MD5

When I compiled my code and included it in c++ all worked fine.


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic