问题
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