Compiling error in VS 2010 Express - OpenCV 2.4.8
Hello,
I've downloaded OpenCv and I've been trying to run a small example with the VS 2010 Express. I set the environment variables, in the C/C++ I included the Additional Directories and in the Linker I have also included the Additional Library and the Additional Depedencies. But when I run the example I get this error:
"fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'"
I already changed Target Machine to MachineX64 but I still get the same error.
Anyone have any ideia on how to solve this?
Thanks a lot!
Try this for x64 bit systems - http://abhishek4273.com/2014/07/10/working-with-opencv-in-windows/
Reason of error is simple, you are combining 32 and 64 bit instructions somewhere. Follow the manual above, that works perfectly fine here.