I have a C++ library (downloaded here). In the library, there are some ".h" header files, ".cc" files containing the code and two static ".lib" that are included in a "win32" folder. I am doing solely a x64 project in Visual Studio 2012 C++.
In order to use the library, I specified, in the "Additional Include Directories" of the property page, the path to the .h files. In the "Additional Library Directories", I specified the path to the folder containing both ".lib" files. In the "Additional Dependencies", I put the name of all the ".lib" files that could be found in the "Additional Library Directories". In the "Debug" mode, I use the debug version of the libraries if available.
In the code, I add an #include < brisk.h> to indicate that I want to use that library. I also use other libraries but they cause no error.
Now, I have a
"LNK2019 unresolved external symbol "public: __cdecl cv:: ...etc"
error at compilation. I wonder if this could be caused by the facts that some ".lib" are maybe compiled in win32 instead of x64. Is that a possible error?
If it is evident I am doing something wrong, please tip me. I have consulted this question but I am not so sure...
Edit :
Here is the output of the compiler:
1>------ Build started: Project: BRISK_opencv2, Configuration: Debug x64 ------
1> BRISK_opencv2.cpp
1>BRISK_opencv2.obj : error LNK2019: unresolved external symbol "public: __cdecl cv::BriskDescriptorExtractor::BriskDescriptorExtractor(bool,bool,float)" (??0BriskDescriptorExtractor@cv@@QEAA@_N0M@Z) referenced in function main
1>BRISK_opencv2.obj : error LNK2019: unresolved external symbol "public: __cdecl cv::BriskFeatureDetector::BriskFeatureDetector(int,int)" (??0BriskFeatureDetector@cv@@QEAA@HH@Z) referenced in function main
1>C:\...\x64\Debug\BRISK_opencv2.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========