The examples aren&#39;t 100% compleate. They only show the bindings, not the library beeing binded.<br>Look at this: <a href="http://www.rkblog.rk.edu.pl/w/p/making-pyqt4-widgets-sip/">http://www.rkblog.rk.edu.pl/w/p/making-pyqt4-widgets-sip/</a><br>
<br><div class="gmail_quote">2009/4/17 Pim Schellart <span dir="ltr">&lt;<a href="mailto:P.Schellart@student.science.ru.nl">P.Schellart@student.science.ru.nl</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Users/Developers,<br>
<br>
After failing to compile a simple hello world program with SIP I tried to compile the simple C++ example from the website: <a href="http://www.riverbankcomputing.com/static/Docs/sip4/sipref.html#a-simple-c-example" target="_blank">http://www.riverbankcomputing.com/static/Docs/sip4/sipref.html#a-simple-c-example</a><br>

I created the files using copy paste and followed the instructions to the letter but I still get the same error when invoking make:<br>
<br>
c++ -c -pipe -fPIC -Os -Wall -W -I. -I/Applications/scisoft/i386/Packages/Python-2.5.2/Python.framework/Versions/2.5/include/python2.5 -o sipwordcmodule.o sipwordcmodule.cpp<br>
c++ -c -pipe -fPIC -Os -Wall -W -I. -I/Applications/scisoft/i386/Packages/Python-2.5.2/Python.framework/Versions/2.5/include/python2.5 -o sipwordWord.o sipwordWord.cpp<br>
c++ -headerpad_max_install_names -bundle -F/Applications/scisoft//i386/library/Frameworks -framework Python -o word.so sipwordcmodule.o sipwordWord.o -lword<br>
ld: library not found for -lword<br>
collect2: ld returned 1 exit status<br>
make: *** [word.so] Error 1<br>
<br>
Does anybody have any idea what is going on?<br>
It looks like it is searching for the library named word but that is a bit strange since this is exactly the library which we are attempting to build.<br>
If I try the same example with distutils using the setup.py file from the same manual I get:<br>
<br>
python setup.py build<br>
/Applications/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py:263: UserWarning: Unknown distribution option: &#39;versione&#39;<br>
  warnings.warn(msg)<br>
running build<br>
running build_ext<br>
building &#39;word&#39; extension<br>
/Applications/scisoft/i386/Packages/Python-2.5.2/Python.framework/Versions/2.5/bin/sip -c build/temp.macosx-10.4-i386-2.5 -b build/temp.macosx-10.4-i386-2.5/word.sbf word.sip<br>
creating build/temp.macosx-10.4-i386-2.5/build<br>
creating build/temp.macosx-10.4-i386-2.5/build/temp.macosx-10.4-i386-2.5<br>
cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/scisoft/i386/Packages/Python-2.5.2/Python.framework/Versions/2.5/include/python2.5 -I/Applications/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c build/temp.macosx-10.4-i386-2.5/sipwordcmodule.cpp -o build/temp.macosx-10.4-i386-2.5/build/temp.macosx-10.4-i386-2.5/sipwordcmodule.o<br>

cc1plus: warning: command line option &quot;-Wstrict-prototypes&quot; is valid for C/ObjC but not for C++<br>
cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/scisoft/i386/Packages/Python-2.5.2/Python.framework/Versions/2.5/include/python2.5 -I/Applications/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c build/temp.macosx-10.4-i386-2.5/sipwordWord.cpp -o build/temp.macosx-10.4-i386-2.5/build/temp.macosx-10.4-i386-2.5/sipwordWord.o<br>

cc1plus: warning: command line option &quot;-Wstrict-prototypes&quot; is valid for C/ObjC but not for C++<br>
word.sip:8:18: error: word.h: No such file or directory<br>
sipwordWord.cpp: In function ‘PyObject* meth_Word_reverse(PyObject*, PyObject*)’:<br>
sipwordWord.cpp:21: error: ‘Word’ was not declared in this scope<br>
sipwordWord.cpp:21: error: ‘sipCpp’ was not declared in this scope<br>
sipwordWord.cpp: In function ‘void release_Word(void*, int)’:<br>
sipwordWord.cpp:61: error: expected type-specifier before ‘Word’<br>
sipwordWord.cpp:61: error: expected `&gt;&#39; before ‘Word’<br>
sipwordWord.cpp:61: error: expected `(&#39; before ‘Word’<br>
sipwordWord.cpp:61: error: ‘Word’ was not declared in this scope<br>
sipwordWord.cpp:61: error: expected primary-expression before ‘&gt;’ token<br>
sipwordWord.cpp:61: error: expected `)&#39; before ‘;’ token<br>
sipwordWord.cpp: In function ‘void* init_Word(sipWrapper*, PyObject*, sipWrapper**, int*)’:<br>
sipwordWord.cpp:78: error: ‘Word’ was not declared in this scope<br>
sipwordWord.cpp:78: error: ‘sipCpp’ was not declared in this scope<br>
sipwordWord.cpp:86: error: expected type-specifier before ‘Word’<br>
sipwordWord.cpp:86: error: expected `;&#39; before ‘Word’<br>
sipwordWord.cpp:92: error: expected initializer before ‘*’ token<br>
sipwordWord.cpp:94: error: ‘a0’ was not declared in this scope<br>
sipwordWord.cpp:96: error: expected type-specifier before ‘Word’<br>
sipwordWord.cpp:96: error: expected `;&#39; before ‘Word’<br>
error: command &#39;cc&#39; failed with exit status 1<br>
<br>
Kind regards,<br><font color="#888888">
<br>
Pim Schellart</font><br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br>