views:

243

answers:

1

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?

+2  A: 

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.

dauphic
When I set it to vc90, I get "MSB8010: Specified platform toolset (v90) requires Visual Studio 2008. Please make sure that Visual Studio 2008 is installed on the machine."
tfkl
And you have vs2008 installed ?
nos
No, if I did I would just compile it with VS2008. The problem is that I don't have it and I can't find anywhere to download it.
tfkl
Try here http://www.microsoft.com/express/downloads/#2008-Visual-CPP in 'Visual Studio 2008 Express" tab. You can also download Microsoft SDK 7.0 - it contains VC 2008 compiler (in SDK 7.1 VC was replaced with 2010 version).
Zuljin
Wow, downvoting microsoft for obscure links. Thanks Zuljin, that's the download. If you want to put that in a separate answer I'll mark it as such.
tfkl
@tfkl: that is the first readable link I've seen from Microsoft for years. And you're calling it obscure? Perhaps you prefer links like this? http://msdn.microsoft.com/en-us/library/ms632679%28VS.85%29.aspx
jalf