1
votes

I am running a project with platform WIN32 but my laptop is 64bit. So if I choose the target machine type x64 it will announce : error LNK1112: module machine type 'X86' conflicts with target machine 'x64' File opencv_ts300.lib Then when I change the target machine type X86 it will announce error LNK1112: module machine type 'x64' conflicts with target machine 'X86' File Assemblyinfo.obj. So what should I do? Please help me. Thank you

2
Please provide a minimal sample so other people can try to reproduce and help you - Vincent

2 Answers

1
votes

Your solution configuration isn't correct. Looks like you mismatched builds in VS "Configuration Manager". Also, it looks like your opencv_ts300.lib is built for x64, so if you don't have x86 built of opencv then you'll have to switch all your projects to x64 as well.

0
votes

You can't use inline assembly in Visual Studio x64 mode. The assemblyfile.obj is most likely written for x64 anf can't be linked to a x86-compiled c program thereby, causing the second error.