Computing Concepts with C++ Essentials/Big C++

Compiler and Tool Help

Visual C++ Toolkit 2003 (Free Command-Line Compiler)

You can get the Microsoft compiler for free at http://msdn.microsoft.com/visualc/vctoolkit2003/. You only get a compiler, not a visual development environment. You supply your own text editor, and you launch the compiler from a command shell.

Here are the instructions for compiling programs:

Programs that don't include the Time/Employee classes or CCC graphics:

cl source_file
For example,
cl hello.cpp

Programs that include the Time or Employee class:

Here are the direction for the Time class. To use the Employee class, simply replace ccc_time with ccc_empl.
Compile with the following command:
cl  -Ic:\cccbook\cccfiles source_file c:\cccbook\cccfiles\ccc_time.cpp
For example,
cl -Ic:\cccbook\cccfiles time1.cpp c:\cccbook\cccfiles\ccc_time.cpp
Alternatively, you can simply copy ccc_time.cpp and ccc_time.h from the c:\cccbook\cccfiles directory into the same directory as the program that uses them, and compile with a simpler command line.
copy c:\cccbook\cccfiles\ccc_time.* .
cl source_file ccc_time.cpp
For example,
cl time1.cpp ccc_time.cpp

Programs that use CCC graphics:

cl -Ic:\cccbook\cccfiles source_file c:\cccbook\cccfiles\ccc_msw.cpp c:\cccbook\cccfiles\ccc_shap.cpp gdi32.lib user32.lib
For example,
cl -Ic:\cccbook\cccfiles phoenix.cpp c:\cccbook\cccfiles\ccc_msw.cpp c:\cccbook\cccfiles\ccc_shap.cpp gdi32.lib user32.lib
Alternatively, you can copy ccc_win.h, ccc_msw.h, ccc_msw.cpp, ccc_shap.h, and ccc_shap.cpp from the c:\cccbook\cccfiles directory into the same directory as the program that uses them, and compile with a simpler command line.
cl source_file ccc_msw.cpp ccc_shap.cpp gdi32.lib user32.lib
For example,
cl phoenix.cpp ccc_msw.cpp ccc_shap.cpp gdi32.lib user32.lib