Results 1 to 2 of 2

Thread: Link problem when compiling the Qt Visual Studio Add-in

  1. #1
    Join Date
    Dec 2006
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Link problem when compiling the Qt Visual Studio Add-in

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Link problem when compiling the Qt Visual Studio Add-in

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. compiling Qt with visual studio
    By jello in forum Newbie
    Replies: 0
    Last Post: 13th April 2010, 20:32
  2. Problem compiling under visual studio
    By franco.amato in forum Qt Programming
    Replies: 1
    Last Post: 28th October 2009, 17:53
  3. About link in Visual Studio 2003
    By vencent in forum General Programming
    Replies: 8
    Last Post: 16th January 2008, 01:32
  4. Replies: 3
    Last Post: 18th April 2007, 15:31
  5. link error for visual studio.net 2003
    By berlin in forum Newbie
    Replies: 9
    Last Post: 29th September 2006, 16:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.