Ask Your Question
0

In my first proj: error LNK1112!

asked 2013-03-05 13:24:52 -0600

Curious gravatar image

Hi every body, i installed opencv 2.4.3 and set up in VS2010 like siad in all tuts and Cookbook but there is this error:

Error   1   error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

although my system is x64!

what should i do?! :|

P.S: sorry for my bad English...

edit retag flag offensive close merge delete

Comments

any chance you linked to the libs in the wrong(X86) directory ?

check the 'Additional Linker Path' settings and change to opencv\build\x64\vc10\lib if nessecary

berak gravatar imageberak ( 2013-03-05 13:37:31 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-05 14:45:07 -0600

hossein.f gravatar image

hi dear friend,in default your vc++ configured in x86 for changed to x64 you should Right-click on your project in solution explorer then go propertise in configuration manager click on the active solution platform==>new change itanium to x64.

edit flag offensive delete link more

Comments

thanks, my problem solved...

Curious gravatar imageCurious ( 2013-03-07 10:56:00 -0600 )edit

Question Tools

Stats

Asked: 2013-03-05 13:24:52 -0600

Seen: 268 times

Last updated: Mar 05 '13