Prev | Current Page 1409 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


-pedantic-errors Emits all errors required by the ANSI/ISO C standard.
-static Links against static libraries.
-traditional Supports the Kernighan and Ritchie C syntax. (If you don??™t understand what this
means, don??™t worry about it.)
-v Shows the commands used in each step of compilation.
-W Suppresses all warning messages.
-Wall Emits all generally useful warnings that gcc can provide. Specific warnings can
also be flagged using -Wwarning, where warning is replaced by a string
identifying an item for which you want to list warnings.
-werror Converts all warnings into errors, stopping the compilation.
As mentioned earlier, -o file tells GCC to place output in the file file regardless of the output
being produced. If you do not specify -o, for an input file named file.suffix, the defaults are
to name the executable a.out, the object file file.o, and the assembly language file file.s.
Preprocessor output goes to stdout.
785
Programming Tools and Utilities 29
Automating Builds with make
The make utility is a tool to control the process of building and rebuilding software. make automates
what software gets built, how it gets built, and when it gets built, freeing programmers to
concentrate on writing code. It also saves a lot of typing because it contains logic that invokes
GCC compiler-appropriate options and arguments.


Pages:
1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421