next up previous
Next: Problem description Up: CS1320 Homework 6 Previous: Reading

Compilation Tip

Last week, we told you about the -Wall and -pedantic options for g++ to print warning messages about possibly erroneous statements. Typing

g++ -Wall -pedantic hello.cc
everytime we want to compile a program can become tedious. Here is a better way.

Using a text editor, make a file called ``Makefile'' with only one line:

CXXFLAGS= -Wall -pedantic
To compile the hello.cc file, type

make hello
This will produce an executable program called ``hello'', not ``a.out''. Enjoy!




1999-10-19