Results 1 to 4 of 4

Thread: jom / Windows SDK libs linking problem

  1. #1
    Join Date
    Nov 2007
    Posts
    53
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default jom / Windows SDK libs linking problem

    Hi everybody,

    I decided to give the beta of Qt Creator 1.3 a try rather than using Visual C++ 2008 Express as usually.

    I have a problem during the linking phase, where it can't find symbols (CoCreateInstance@20 for exampl, as I use several native Win32 calls).

    It doesn't work in Qt Creator nor in a Visual Studio 2008 dos console where a pure nmake works.

    Is there a way to specify extra libs ? I would prefer doing it system-wide as in the Visual Studio preferences or in the correct .bat for the Visual Studio 2008 dos console, rather than specifying it in each .pro Qt project file.

    Thanks for your answers.

  2. #2
    Join Date
    Nov 2007
    Posts
    53
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: jom / Windows SDK libs linking problem

    Ok, I found a place in the project view of Qt Creator with such an env variable :

    WINDOWSSDKDIR ==> C:\Program Files\Microsoft SDKs\Windows\v6.0A\

    I have several SDKs but I think this is the one VC++ / namek in console use so the problem is not there (

  3. #3
    Join Date
    Nov 2007
    Posts
    53
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: jom / Windows SDK libs linking problem

    It seems if I add Ole32.lib and shell32.lib directly in my .pro project file, it compile perfectly but I wonder why I don't have to do this with nmake or Visual C++ Express

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: jom / Windows SDK libs linking problem

    Try LIBS += -lOle32

    If you want it global, put it in mkspecs.

Similar Threads

  1. Problem with qextserialport for Qt 4.5.2 for windows
    By viniciuscst in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2009, 22:01
  2. Replies: 2
    Last Post: 1st October 2009, 17:26
  3. Linking problem on Mac os x 10.4
    By maverick_pol in forum General Programming
    Replies: 0
    Last Post: 6th January 2008, 15:09
  4. Replies: 10
    Last Post: 28th April 2006, 16:48
  5. QProcess problem with windows batch file
    By bood in forum Qt Programming
    Replies: 11
    Last Post: 6th January 2006, 09:08

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.