Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual c++ 2010 link against older runtime?

Sorry if this has been asked.

Just like I can select in C# project that I want it to build for .NET 2.0 runtime, is it possible for native c++ project to be built against older CRT, let's say one from visual studio 2005?

I would like this because I have external SDK that was build with VS2005, but I'd like to use newer IDE.

like image 796
Kugel Avatar asked Dec 28 '22 17:12

Kugel


2 Answers

You can build against 2005 and 2008 (think also 2003) as long as they are installed along side vis 2010.

You will need to change The platform Tool set for each project to reflect the one you want to build against (properties -> general -> platform toolset) with v100 being 2010, v90 2008, v80 2005 and so on

like image 192
Lodle Avatar answered Jan 13 '23 00:01

Lodle


In the project settings you can choose MSVC9, but not 8. So you can link against the 2008 redistributables... but not the 2005 ones.

like image 22
Mahmoud Al-Qudsi Avatar answered Jan 12 '23 23:01

Mahmoud Al-Qudsi