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

Phil Thompson phil at riverbankcomputing.com
Sat Jul 23 09:40:53 BST 2011


On Sat, 23 Jul 2011 01:20:57 +0200, Rafael Durán Castañeda
<rafadurancastaneda at gmail.com> wrote:
> Hi,
> 
> 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

> working?

As it says in the docs the word library is fictional.

Phil


More information about the PyQt mailing list