The Microsoft Visual C++ Toolkit 2003 is a free edition of Microsoft's professional Visual C++ optimizing
compiler and standard libraries.
The Toolkit can be used to build C++ -based applications, and you may redistribute those applications.
Read the
End User License Agreement (EULA), included with the Toolkit, for complete details.
The Toolkit installs the following:
- The Visual C++ command-line compiler and linker, and their dependencies.
- The Visual C++ C Runtime Library and static-link modules.
- The Standard C++ Library, including Standard Template library.
- The Microsoft .NET Framework Common Language Runtime, including library files necessary for building C++ applications that run on the .NET Common Language Runtime.
- Four samples demonstrating key features of the Visual C++ compiler and libraries.
More information about the Microsoft Visual C++ Toolkit 2003 can be found at:
http://msdn.microsoft.com/visualc/vctoolkit2003/
More information about Visual C and C++ 6.0 can be found at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/vc6anchor.asp
NOTE:
This Toolkit does not contain any IDE. To build any applications you should use the
command line and a text editor, such as Notepad.
Instead of using the command line you
can setup Eclipse as IDE for Microsoft Visual C++ Toolkit 2003.
Installing Microsoft Visual C++ Toolkit 2003
Information
none
Operating system used
Windows XP Home Edition Version 5.1 SP 2
Software prerequisites
none
Procedure
- Download and install Microsoft Visual C++ Toolkit 2003 (VCToolkitSetup.exe).
As an example the toolkit is installed on: C:\Tools\Microsoft Visual C++ Toolkit 2003
- Set the following USER environment variables (NOT SYSTEM environment variables):
PATH=C:\Tools\Microsoft Visual C++ Toolkit 2003\bin;%PATH%
INCLUDE=C:\Tools\Microsoft Visual C++ Toolkit 2003\include;%INCLUDE%
LIB=C:\Tools\Microsoft Visual C++ Toolkit 2003\lib;%LIB%
- The Microsoft C++ command line compiler is named CL.EXE.
To verify if the Toolkit is installed correctly, open a DOS window and type:
cl /?
You should see a list of compiler options displayed:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
:
Show all Microsoft C/C++ compiler options.
- Now you can build a simple C++ application:
- Create a directory c:\test
- Create file Demo.cpp
- Enter the following code in this file:
#include <iostream>
using namespace std;
int main() {
cout << "This is a demonstration! \n";
return 0;
}
- Compile the application:
cl /EHsc Demo.cpp
You should see the following:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
demo.cpp
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
/out:demo.exe
demo.obj
- To run this application, type:
demo
You should see the following:
This is a demonstration!
|
|