[PyQt] Simple C++ example doesn't work

Rafael Durán Castañeda rafadurancastaneda at gmail.com
Sat Jul 23 00:20:57 BST 2011


I was looking at SIP documentation and trying simple c++ example when I got:

g++ -c -O2 -g -fPIC -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
sipwordcmodule.o sipwordcmodule.cpp
g++ -c -O2 -g -fPIC -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
sipwordWord.o sipwordWord.cpp
g++ -shared -Wl,--version-script=word.exp -o word.so sipwordcmodule.o 
sipwordWord.o -lword
/usr/bin/ld: cannot find -lword
collect2: ld returned 1 exit status
make: *** [word.so] Error 1

Sip version is 4.12.1, running under Kubuntu11.04, any hint why it isn't 


More information about the PyQt mailing list