To compile Borland
®
Turbo C
®
++ programs from the DOS command
line (using the “large” memory model), execute the following:
tcc -ml <
path... \program.C> <path... \tchhpib.lib>
For example:
tcc -ml b:\arb_wave.c c:\tc\lib\tchhpib.lib
Change the “-ml” parameter to the appropriate setting when
compiling in the smaller memory models (see your C Language
manual for more information).
Once compiled and linked, an executable file (.EXE) and object file
(.
OBJ) are created in the current directory. Run the program by
typing the file name with the .
EXE extension.
Chapter 6 Application Programs
C Language Programs
246