I built the static openCV 2.3 libraries. My project currently uses the dynamic ones with no problem, but now I want to use static libs. I added the libs to my .pro file:
The problem seem to be that your linker attempts to combine different, incompatible versions of the Visual C++ runtime library (CRT) into one single binary.
Let me guess in the wild: Each part of your project and the libraries you link against are NOT generated with the same code generation options in Visual C++.
I wonder if the /NODEFAULTLIB switch 'd solve this challenge?
On CMake, when building the openCV static libraries, besides unchecking BUILD_SHARED_LIBS I also unchecked BUILD_WITH_STATIC_CRT, and that took care of that particular problem
Make sure that the Project properties->Configuration Properties->c/c++>Code Generation: Runtime Library is Multi-threaded (/MT)