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

Compiler and Tool Help

Borland C++

Borland offers a free command-line compiler. 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:

bcc32 source_file
For example,
bcc32 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:
bcc32  -Ic:\cccbook\cccfiles source_file c:\cccbook\cccfiles\ccc_time.cpp
For example,
bcc32 -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.* .
bcc32 source_file ccc_time.cpp
For example,
bcc32 time1.cpp ccc_time.cpp

Programs that use CCC graphics:

bcc32 -W -Ic:\cccbook\cccfiles source_file c:\cccbook\cccfiles\ccc_msw.cpp c:\cccbook\cccfiles\ccc_shap.cpp
For example,
bcc32 -W -Ic:\cccbook\cccfiles phoenix.cpp c:\cccbook\cccfiles\ccc_msw.cpp c:\cccbook\cccfiles\ccc_shap.cpp
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.
bcc32 -W source_file ccc_msw.cpp ccc_shap.cpp
For example,
bcc32 -W phoenix.cpp ccc_msw.cpp ccc_shap.cpp