Hello!
I have a very strange problem that makes me completely puzzled.
I’m working in MSVS 2012 with the Visual Studio Add-in 1.2.2 installed, and in my project I’m using Intel’s Perceptual SDK. So I have to link two of their libraries (*.lib files). Now if I use a “New project…” wizard to create, say, simple “MFC application” or “Win32 console application”, everything works fine.
But if use it to create a “Qt application” I get 6 “unresolved external symbol” errors when building the project. And these unresolved symbols are not about Qt, they are about Intel’s SDK! Here are just 3 of them:
1>mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall UtilPipelineFace::EnableFaceLocation(unsigned short *)" (?EnableFaceLocation@UtilPipelineFace@@UAEXPAG@Z)
1>mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall UtilPipelineFace::EnableFaceLandmark(unsigned short *)" (?EnableFaceLandmark@UtilPipelineFace@@UAEXPAG@Z)
1>mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall
UtilPipelineGesture::EnableGesture(unsigned short *)" (?EnableGesture@UtilPipelineGesture@@UAEXPAG@Z)
So I link exactly the same two Intel’s libraries and when building a “standard” Visual C++ project everything is ok, but when building a “Qt” project these unresolved symbols appear out of nowhere!
And this problem is not about wrong library path/name or whatever. If I remove any of these 2 libraries from the linker’s input I get more than 6 unresolved symbols. And at the same time just these 2 libraries works fine for the “standard” Visual C++ projects.
So as I’ve already said I have no idea what’s going on. Has anybody experienced something like this? Or do you have any ideas why it can happen? I would really appreciate.
[edit, code tags added, koahnig]
↧