Visual Studio 2012 native C++ DLL x86 compilation

▼魔方 西西 提交于 2019-12-08 21:33:34

问题


I have recently upgraded my toolset from Win 7 x86 / Visual Studio 2010 to Win 8 x64 / Visual Studio 2012. However, now my native C++ dll compiles as x64 rather than x86. I haven't done anything other than move the code to the new O/S and load it into VS2012.

Does anyone know how I can force it to compile for x86?


回答1:


Go to your project's property pages, find the Linker -> Advanced -> Target Machine option, and make sure it is set to MachineX86.




回答2:


Go to Build--> Configuration Manager --> Active Solution Platform and change it to x86.

You can also confirm your specific project Platform, by looking for the project name in the same window and the Platform that is applied to it.



来源:https://stackoverflow.com/questions/12998117/visual-studio-2012-native-c-dll-x86-compilation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!