Search code examples
c++qtvisual-studio-2008lnk2001

error LNK2001 - VS2008 & Qt build


I'm trying to rebuild a VS2008 project I've got from someone, but I can't figure what's the problem.

the project has dependencies on Boost 1_43 and on Qt-4.6.2 (I've build boost lib and it seems okay with that one).

I've already solved the firsts issues about libs's path and all, by adding the include in the properties of my project. (the path of source files have been added in the C++/General setting, and the path of lib files, added in the Linker/General setting).

But now I'm in front of a ton of LNK2001 errors about Qt objects, and I'm not able to find the problem alone.

any idea ? maybe there is something missing in my Qt insatll ?


Solution

  • @vahancho is right, I needed to link against Qt libraries too, in Linker/Input/Additional Dependencies

    My other error was due to Qt 32bit version, and a 64bit compilation.