[PyKDE] undefined symbol: QPrinter::setPrintRange

Andreas Pakulat apaku at gmx.de
Tue May 23 02:11:31 BST 2006


On 22.05.06 16:33:04, Patrick Stinson wrote:
> This happens because when you link objects into an executable, it
> links all the functions used in your program (setPrintRange in my
> example) to their implementations. If the trolltech build left out the
> implementation of setPrintRage, the linker will not be able to find it
> when I "request" it in my example.
> 
> When you import a python module like PyQt4.QtGui it does the same
> thing for all of the functions referenced in the module's code. This
> is called dynamic, or run-time linking. The pyqt4 code generated by
> sip references every function in the qt library (that is wrapped,
> anyway), so when you import it, the linker binds (or links!) the
> function reference (generated by sip in the python module) to the
> actual binary data representing the function block (in the qt
> library).

Well, that is all pretty clear, however what I don't understand is: why
does compiling PyQt4 fail for you but not for me... Or did I overlook
something in the errors you sent?

Andreas

-- 
You may be gone tomorrow, but that doesn't mean that you weren't here today.




More information about the PyQt mailing list