opencv - Using a win32 .lib with a x64 project in Visual C++ -


i have c++ library (downloaded here). in library, there ".h" header files, ".cc" files containing code , 2 static ".lib" included in "win32" folder. doing solely x64 project in visual studio 2012 c++.

in order use library, specified, in "additional include directories" of property page, path .h files. in "additional library directories", specified path folder containing both ".lib" files. in "additional dependencies", put name of ".lib" files found in "additional library directories". in "debug" mode, use debug version of libraries if available.

in code, add #include < brisk.h> indicate want use library. use other libraries cause no error.

now, have

"lnk2019 unresolved external symbol "public: __cdecl cv:: ...etc"  

error @ compilation. wonder if could caused facts ".lib" maybe compiled in win32 instead of x64. possible error?

if evident doing wrong, please tip me. have consulted this question not sure...

edit :

here output of 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 ========== 

you can't use 32-bit , 64-bit code in same process.

the linker should tell if skipping input files instructed use due incompatible architecture. read linker output, not errors.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -