c++ - msvcprtd.lib(MSVCP100D.dll) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' -
i created vs 2010 win 32 program (operation system: win 8-64bit)
then, tried convert win32 program in x64 doing this:
configuration manager -> new solution platform (select x64) -> copy settings win32
the vs2010 created new x64 program based on previous win32 program.
however, when tried compile , run x64 program, there single error: msvcprtd.lib(msvcp100d.dll) : fatal error lnk1112: module machine type 'x86' conflicts target machine type 'x64'
by renaming both win32 version , x64 version of msvcprtd.lib, found program still using win32 msvcprtd.lib.
i checked , found msvcprtd.lib in $(vcinstalldir)lib\amd64. moreover:
library directories -> inherited values has included necessary directories (i think):
$(vcinstalldir)lib\amd64 $(vcinstalldir)atlmfc\lib\amd64 $(windowssdkdir)lib\x64
i checked 3rd party libraries , dlls program using of x64 version.
my question why program still using win32 msvcprtd.lib , how solve problem?
in project library directories, sure change
$(vcinstalldir)lib
, $(vcinstalldir)atlmfc\lib
to
$(vcinstalldir)lib\amd64
, $(vcinstalldir)atlmfc\lib\amd64