Visual C++ 2010 compatibility with VC 2008

为君一笑 提交于 2019-12-29 08:35:13

问题


I am compiling a program with Visual C++ 2010 but I don't want everyone to have to download the redistributable package to run my programs. Most people that will be using my program already have the VC++ 2008 redistributable package though, so is there a way I can compile it with compatibility with VC 2008? Or is there a place I can download VC 2008 express?


回答1:


Visual Studio 2010 has an option to compile with Visual Studio 2008 toolset. You can find it under your project settings. I think the option is just labeled 'Platform Toolset' in the general properties page.




回答2:


If you set the 'Platform Toolset' to "inherit from parent or project defaults" it will work in most of the cases.



来源:https://stackoverflow.com/questions/3435213/visual-c-2010-compatibility-with-vc-2008

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