Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I build VS 2010's C Runtime Library?

I need to modify the C runtime which ships with VS2010 because the 2010 CRT relies on functions released in Windows XP SP2, and I need to be able to deploy to Windows 2000.

Specifically, I need to remove any and all calls to EncodePointer and DecodePointer.

The source for the C runtime is included in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src, so it seems like it should be possible to build the runtime after slightly modifying the source.

Oh, I don't need to be able to build the dynamic versions of the runtime -- static versions only. (I cannot rely on the user installing the CRT on their system either).

With VS2008 and earlier, there was a tutorial in MSDN describing how to build the CRT, but I can't seem to find it for 2010.

Is such a thing possible?

like image 615
Billy ONeal Avatar asked Aug 11 '10 21:08

Billy ONeal


1 Answers

Here's an MSDN link. It looks like you have to do it yourself in VS2010.

You can use the following compiler and linker options to rebuild the MFC, CRT, and ATL libraries. Starting in Visual C++ 2010, scripts for rebuilding these libraries are no longer shipped.

like image 109
Niall C. Avatar answered Oct 16 '22 20:10

Niall C.