Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LNK1112: module machine type 'x64' conflicts with target machine type 'X86': Qt creator

I have a application running on linux which I am trying to import on windows. I have set up all the libraries and also made changes to the .pro file. Now when I try to build the project I get this error:

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

I am not sure what is causing this issue.I am using the 32-bit Qt creator. I know there are a couple of links which talk about changing the project properties but all those are related to changing them in Visual Studio. I am using Qt creator and running the project through the Qt UI. So I am not sure what changes have to be done for the project properties through Qt if this has to be resolved.

like image 561
Valla Avatar asked Jan 06 '15 21:01

Valla


1 Answers

I had the same problem but my scenario was a little different, I was targeting x64 architecture, and when I changed it to x86 I got this error, it took me some time to figure out that I had to re-build the project to match CPU architectures.

like image 126
IdontCareAboutReputationPoints Avatar answered Sep 22 '22 05:09

IdontCareAboutReputationPoints