Linking to an older version of the runtime with a newer version of MSVC?

I own VS 2008 Pro and would like to test compatibility with MSVCRT80 during the run of VS 2005, but I do not want to buy it just for this. Is there any way to link to MSVCRT80 without getting VS 2005?

thanks

+4
source share
2 answers

Official support for native multi-targeting did not appear until Visual Studio 2010, which allows you to select v100 or v90 as the "Platform Toolset". There is no such feature in Visual Studio 2008.

It discusses how you can achieve the same effect in Visual Studio 2008 , but it seems you need to install VS 2005 on your computer for this to work. This will not work if you just installed the runtime libraries because you need the correct compiler and linker version that you will only have if you install VS 2005.

In this note, I'm not quite sure what you mean by "compatibility testing." If you compile an application against v90 in VS 2008, it will not work with older versions of the runtime. You must compile and reference the version you want to use in your application.

Finally, consider whether this is true or not. Since you must enable MSVCRT with your application anyway , what advantage is trying to connect with an older version of the runtime? Just turn on v90 and do with it.

+5
source

Links to work are still (as of January 11, 2011) Microsoft downloads for Visual C ++ Express 2005 can be found here:

This will allow you to compile it at run time VS2005, without buying anything.

(in case the blogspot article goes away, the link is for .iso http://go.microsoft.com/fwlink/?linkid=57034 ).

0
source

Source: https://habr.com/ru/post/1335114/


All Articles