|
|
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.cAs 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).