I'm trying to link opencv 2.4.13 to a visual studio project. I have the .lib and .dll files in subfolders of the projects. I added the relative paths to the configuration. But I still get linking errors. My goal is to make the project portable: fi I take the directory to another machine, I will be able to run without installing opencv separately on the machine.
What I added:
- lib subdirectory to Additional Library Directories
- the include directories to the Additional Include Directories
- the .dll in Linker -> Input -> Additional Dependencies
Here is an example of these errors:
LNK2019 unresolved external symbol __wcsdup_dbg referenced in function __Getctype
LNK2001 unresolved external symbol __wcsdup_dbg
LNK2019 unresolved external symbol __realloc_dbg referenced in function "private: static void __cdecl std::locale::_Locimp::_Locimp_Addfac(class std::locale::_Locimp *,class std::locale::facet *,unsigned int)" (?_Locimp_Addfac@_Locimp@locale@std@@CAXPAV123@PAVfacet@23@I@Z)
Any Ideas?