Procedure to install the free Microsoft Visual C++ Toolkit 2003

 

First, download and install the Microsoft Visual C++ Toolkit 2003 :

 

http://msdn.microsoft.com/visualc/vctoolkit2003/

 

The Microsoft Visual C++ Toolkit 2003 includes the core tools developers need to compile and link C++-based applications for Windows and the .NET Common Language Runtime compiler, linker, libraries, and sample code.

 

Once the Toolkit installed, you will need some more SDKs…

At the right of the free Toolkit page, section Related downloads :

 

 - Microsoft Windows Platform SDK

 

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

 

Selecting “Core SDK” is sufficient :

 

   Windows Server 2003 SDK

      Core SDK

 

Follow instructions until donwload / install is complete.

 

Still at the right of the free Toolkit page, section Related downloads :

 

 - .NET Framework Software Development Kit :

 

http://www.microsoft.com/downloads/details.aspx?familyid=9b3a2ca6-3647-4070-9f41-a333c6b9181d&displaylang=en

 

The Microsoft® .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications documentation, samples, and command-line tools and compilers. You must install the .NET Framework Redistributable Package version 1.1 prior to installing the .NET Framework SDK.

 

So you have to install this package first :

 

 .NET Framework Redistributable Package :

 

http://www.microsoft.com/downloads/details.aspx?familyid=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en

 

Then you have to set correctly your Windows Environment variables :

 

Right-click on “My Computer” icon, select “Properties” menu entry, the following dialog will appear :

 

 

Select “Advanced” tab, then “Environment Variables” button. The following dialog will show up :

 

 

If the INCLUDE Environment variable doesn’t exist, click on the “New” button in User variables, then add the INCLUDE variable as shown below :

 

 

If this variable already exists, just edit it and be sure the following entries have been set :

 

INCLUDE :

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;C:\Program Files\Microsoft SDK\include

 

( adjust paths according to the location where your Toolkit and SDKs have been installed )

 

Then apply the same method for LIB and PATH variables :

 

LIB :

C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft SDK\Lib;%ROOTSYS%\lib

 

PATH :

%ROOTSYS%/bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft SDK\Bin\Win64

 

Then you have to add related path in cygwin’s .bash_profile:

 

export PATH=$PATH:/c/WINDOWS/system32:/c/WINDOWS:/c/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/bin:/c/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003:/c/Program\ Files/Microsoft\ Visual\ Studio\ .NET\ 2003/Vc7/bin:/c/Program\ Files/Microsoft\ SDK/Bin/Win64:/c/Program\ Files/Microsoft\ SDK/Bin

 

After to have downloaded and installed all these components, there is one point remaining.

The msvcp71.dll import library file msvcprt.lib is not included in the distribution.

So here are the import library and the definition file :

 

msvcprt.lib

msvcprt.def

 

For advanced users, here is a tip to generate the correct lib file matching the msvcp71.dll included in the distribution :

 

The command “dumpbin /exports /OUT:msvcprt.def msvcp71.dll” generates the file msvcprt.def. This file is not usable as is, please take a look at the provided mscvprt.def file to see how it should look like.

Then the command “lib /def:msvcprt.def” generate a usable msvcprt.lib.

 

Related (interesting) downloads:

 

Ø      Debugging Tools for Windows :
http://www.microsoft.com/whdc/devtools/debugging/default.mspx

 

Ø      Code::Blocks :
Open source, cross platform C/C++ IDE (Integrated Development Environment).
Working with the free Microsoft Visual C++ Toolkit 2003.
http://www.codeblocks.org/