Compiling error in VS 2010 Express - OpenCV 2.4.8

asked 2014-10-07 17:27:01 -0600

andré gravatar image

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!

edit retag flag offensive close merge delete

Comments

1
Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-10-08 03:21:29 -0600 )edit
1

Reason of error is simple, you are combining 32 and 64 bit instructions somewhere. Follow the manual above, that works perfectly fine here.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-08 04:20:35 -0600 )edit