DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using programming tools

Compiling the code

Because we have already performed an analysis of the program, the program should compile without errors. Compile testcase with the following command line:

   cc -o testcase testcase.c
As expected, the compiler compiles the program without errors and names the resulting executable file testcase.

The compiler supports a large number of options that can be used to control how the program is compiled and linked. One that is commonly used is the -l option, which specifies the libraries to link in. The default library is the standard C library; if your program uses any routines from other libraries, you will need to specify those libraries on the compile line. The section (S) manual pages indicate which library is required for which routine.

For more information, see ``C compilation system'', ``C language compiler'', and cc(CP).


Next topic: Using make
Previous topic: Archiving changes made during the analysis

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003