[Qt-interest] Making a Qt program into a dynamic library
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Tue Dec 15 16:39:54 CET 2009
Guido Seifert wrote on Tuesday, December 15, 2009 4:22 PM:
> Hi, I have to need to convert a whole Qt program into a dynamic lib.
What /exactly/ are you trying to convert into a lib? The /whole/ application? I would be surprised if that worked! Usually an application as a main() entry function, and if you tried to link that with another application (that's the point of having a lib, right? :) then I would expect "duplicate symbol" linker errors.
At least the main() function should remain in the actual application binary (the "*.exe" on Windows). Talking about Windows: don't forget to __dllexport/__dllimport symbols ;) http://doc.trolltech.com/4.6/qtglobal.html#Q_DECL_EXPORT and Co. are helpful here. Also refer to http://doc.trolltech.com/4.6/sharedlibrary.html.
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list