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

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Ive read a lot of similar problems to mine, but none had a solution that helped. Im building a program that runs the functions of a DLL. Everything compiled fine in 32 bit, but now that Im tryign to compile for x64 I get a lot of errors.<br/>
<br/>
I get the error in the title for the following libraries:<br/>
mfcs100.lib msvcrt.lib msvcprt.lib
I tried adding them to the ignored libraries list, but then got a large number of unresolved linker errors. The program Im creating is using MFC in a Shared DLL, if that helps.
Any help would be greatly appreciated
(an example of my error output follows)<br/>
<br/>
<span style="font-family:Consolas; font-size:xx-small


<span style="font-family:Consolas; font-size:xx-small


1>------ Rebuild All started: Project: SpellCheckTest, Configuration: Release x64 ------
1>Build started 7/11/2011 9:08:54 AM.
1>_PrepareForClean:
1> Deleting file "x64ReleaseSpellCheckTest.lastbuildstate".
1>InitializeBuildStatus:
1> Touching "x64ReleaseSpellCheckTest.unsuccessfulbuild".
1>ClCompile:
1> SpellCheckTest.cpp
1> stdafx.cpp
1>Link:
1>
1> Searching libraries
1> Searching SpellCheckUI.lib:
1> Searching C:Documents and SettingsMyNameDesktopcodeSpellCheckUI\Hunspellhunspell-1.2.14srcwin_apiDebug_dlllibhunspelllibhunspell.lib:
1> Searching C:Program FilesMicrosoft Visual Studio 10.0VCatlmfclibmfc100.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibkernel32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibuser32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibgdi32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibmsimg32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibcomdlg32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibwinspool.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibadvapi32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibshell32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibcomctl32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibshlwapi.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibuuid.lib:
1> Searching C:Program FilesMicrosoft Visual Studio 10.0VCatlmfclibatls.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibole32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Aliboleaut32.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Aliboledlg.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Aliburlmon.lib:
1> Searching C:Program FilesMicrosoft SDKsWindowsv7.0Alibgdiplus.lib:
1> Searching C:Program FilesMicrosoft Visual Studio 10.0VClibcomsuppw.lib:
1> Searching C:Program FilesMicrosoft Visual Studio 10.0VClibmsvcprt.lib:
1>msvcprt.lib(MSVCP100.dll) : fatal error LNK1112: module machine type X86 conflicts with target machine type x64
1><span style="font-family:Consolas; font-size:xx-small
1>Build FAILED.
1>
1>Time Elapsed 00:00:03.48
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


View the full article
 
Back
Top