PDA

View Full Version : Link problem when compiling the Qt Visual Studio Add-in



Nb2Qt
3rd December 2010, 12:57
It's great that we now have access to the source code for the VS Add-in. I was following the directions found at http://developer.qt.nokia.com/wiki/QtVSAddin for how to compile it and ran into a problem. I'm getting the following link error when linking the qmakewrapper1.lib (all code compiles fine):

QAxServer.lib(qaxfactory.obj) : error LNK2019: unresolved external symbol __imp__RegisterActiveObject@16 referenced in function "public: __thiscall A
tiveObject::ActiveObject(class QObject *,class QAxFactory *)" (??0ActiveObject@@QAE@PAVQObject@@PAVQAxFactory@@@ Z)
QAxServer.lib(qaxserverbase.obj) : error LNK2001: unresolved external symbol __imp__RegisterActiveObject@16

I've tried compiling it using VS2005 and VS2010 and against Qt 453 and 471 and get the same results in all cases. Silly question: Am I supposed to use a statically-compiled Qt library set? The build directions don't mention that.

Thanks,

RobF

wysota
3rd December 2010, 21:17
RegisterActiveObject is a WinAPI call: http://msdn.microsoft.com/en-us/library/ms221551.aspx. You are not linking with some library you are supposed to be linking with.