1)運行「C:\ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Bin \ SetEnv.cmd/x64/Debug」設置環境變量。Visual C++ Express 2010:「嘗試從x64環境構建Win32應用程序」
2)從該命令提示符運行「vcexpress」。從命令提示符開始的原因是爲了檢測正確的編譯器和鏈接器。否則,當從開始菜單運行vcexpress時,它們默認爲x86_amd64。
3)試圖構建我的項目,一個由CMake生成的調用msbuild編譯靜態解決方案文件的SuperBuild。收到此錯誤:
You are attempting to build a Win32 application from an x64-environment. If using the Windows 7.1 SDK build environment, type setenv/x86