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.
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 :o(
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
Re: jom / Windows SDK libs linking problem
Try LIBS += -lOle32
If you want it global, put it in mkspecs.