I'm a visual basic programmer trying to get a visual c++ up and running with some source code I found that uses OpenCV. I'm not very experienced at all with c++. I'm getting unresolved external symbol errors and I've spent hours reading every article I can find on here about it, and every answer is... "don't link x86 with x64 libs, or vise versa" or "add x references to preferences->linker" or "add your lib/dll files to the project folder, and then add them to your solution" or "obviously you didn't add the libs to your linker".
I've already done all of the following, and it didn't work...
1) I added "c:\opencv\build\x64\vc11\staticlib;%(AdditionalLibraryDirectories)" to my "Additional Library Directories" in Project->Preferences->Linker->General. Didn't help a bit.
2) I tried the above with the x86 directory instead, didn't help a bit. So the theories that it's a x64 / x86 problem doesn't seem to be the answer.
3) I added "opencv_calib3d244d.lib;opencv_contrib244d.lib;opencv_core244d.lib;opencv_features2d244d.lib;opencv_flann244d.lib;opencv_gpu244d.lib;opencv_haartraining_engined.lib;opencv_highgui244d.lib;opencv_imgproc244d.lib;opencv_legacy244d.lib;opencv_ml244d.lib;opencv_nonfree244d.lib;opencv_objdetect244d.lib;opencv_photo244d.lib;opencv_stitching244d.lib;opencv_ts244d.lib;opencv_video244d.lib;opencv_videostab244d.lib;%(AdditionalDependencies)" to my Project->Preferences->Linker->Input, for Debug(active). Didn't help.
4) I tried the above with the "lib" directory instead of the "staticlib" directory. Didn't help a bit.
5) I tried copying all the debug version of the *.lib files from the lib directory into my project folder, and Project->Add->Existing Item to add them to my project. Didn't help.
6) I added "c:\opencv\build\include;%(AdditionalIncludeDirectories)" to my Project->Preferences->C/C++->General->Additional Include Directories. Didn't help.
It does not appear to be any of these things. Does anyone know a solution to this error that does not involve any of these things I already tried?
Here are some of the errors I'm getting:
Error 16 error LNK2019: unresolved external symbol _cvCreateImage referenced in function "struct _IplImage * __cdecl loadFloatImage(char const *)" (?loadFloatImage@@YAPAU_IplImage@@PBD@Z) C:\dev\CPP_console\CPP_console\FeaturesMain.obj CPP_console Error 17 error LNK2001: unresolved external symbol _cvCreateImage C:\dev\CPP_console\CPP_console\TextDetection.obj CPP_console Error 18 error LNK2019: unresolved external symbol _cvReleaseImage referenced in function "struct _IplImage * __cdecl loadFloatImage(char const *)" (?loadFloatImage@@YAPAU_IplImage@@PBD@Z) C:\dev\CPP_console\CPP_console\FeaturesMain.obj CPP_console