port x86 MFC工程到x64

遇到如下错误:

sourceannotations.h(27): error C2371: 'size_t' : redefinition; different basic types
winnt.h(14982): error C3861: '__readfsdword': identifier not found

可能是如下设置不正确

Configuration Properties -> VC++ Directories
Executable Directories:

$(VCInstallDir)bin\x86_amd64;$(VCInstallDir)bin;$(WindowsSdkDir)bin\NETFX 4.0 Tools;$(WindowsSdkDir)bin;
$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;
$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)\bin;$(FrameworkSDKDir)\lib\win64;$(MSBuildToolsPath32);$(FxCopDir);$(PATH);


Include Directories:
$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;


Reference Directories:
$(VCInstallDir)atlmfc\lib\amd64;$(VCInstallDir)lib\amd64


Library Directories:
$(VCInstallDir)lib\amd64;$(VCInstallDir)atlmfc\lib\amd64;$(WindowsSdkDir)lib\x64;



 

你可能感兴趣的:(c++,开发语言)