EDN Admin
Well-known member
I created a vs 2010 win 32 program (Operation system: Win 8-64bit)
Then, I tried to convert this win32 program in to x64 by doing like this:
Configuration Manager -> new solution platform (select x64) -> copy settings from win32
The vs2010 created a new x64 program based on the previous win32 program.
However, when I tried to compile and run the x64 program, there is a single error:
msvcprtd.lib(MSVCP100D.dll) : fatal error LNK1112: module machine type X86 conflicts with target machine type x64
I checked and found msvcprtd.lib is in $(VCInstallDir)libamd64. Moreover:
Library Directories -> Inherited values has included all the necessary directories (I think):
$(VCInstallDir)libamd64
$(VCInstallDir)atlmfclibamd64
$(WindowsSdkDir)libx64
My question is why the error report seems to tell me the program is still using the msvcprtd.lib in $(VCInstallDir)lib?
And, how to solve this problem?
Thanks in advance.
View the full article
Then, I tried to convert this win32 program in to x64 by doing like this:
Configuration Manager -> new solution platform (select x64) -> copy settings from win32
The vs2010 created a new x64 program based on the previous win32 program.
However, when I tried to compile and run the x64 program, there is a single error:
msvcprtd.lib(MSVCP100D.dll) : fatal error LNK1112: module machine type X86 conflicts with target machine type x64
I checked and found msvcprtd.lib is in $(VCInstallDir)libamd64. Moreover:
Library Directories -> Inherited values has included all the necessary directories (I think):
$(VCInstallDir)libamd64
$(VCInstallDir)atlmfclibamd64
$(WindowsSdkDir)libx64
My question is why the error report seems to tell me the program is still using the msvcprtd.lib in $(VCInstallDir)lib?
And, how to solve this problem?
Thanks in advance.
View the full article