mfc42d.lib(MFC42D.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'  
Author Message
camus





PostPosted: Visual C++ Express Edition, mfc42d.lib(MFC42D.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' Top

Hi everyone,

I'm trying to rebuild a project, which was constructed in the VC6++ IDE. Now I get this error:

mfc42d.lib(MFC42D.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

Could anyone help me to get rid of this error

Many thanks!



Visual Studio Express Editions9  
 
 
nobugz





PostPosted: Visual C++ Express Edition, mfc42d.lib(MFC42D.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' Top

Express doesn't come with MFC. Are you using MFC that came with the Platform SDK It can only be used on 64-bit builds and OS...


 
 
Karpov Andrey





PostPosted: Visual C++ Express Edition, mfc42d.lib(MFC42D.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' Top

Linker Tool tries link together 32-bit and 64-bit object modules (obj-files). It is naturally impossible. Closely check up parameters of the project. Such situation often arises at converting the project created in VC6 at attempt to build the 64-bit version. When you create a new 64-bit configuration, there is copying parameters from 32-bit configuration. Visual Studio 2005 only changes some DEFINE and some keys. Visual Studio 2005 only changes number DEFINE and keys. And the parameters specifying on in addition link object modules and lib-files remain former.

See also: http://msdn2.microsoft.com/en-US/library/21ksa10x.aspx

Still I wish to warn trailblazers, that successful compilation and link a 64-bit code, it yet the end. I recommend carefully it to test. There can be errors in the most unexpected places.

For this theme I recommend will familiarize with:  http://www.viva64.com/articles.php