C++ User's Guide

Using make With iostreams

The standard iostream file names do not have ".h" suffixes. Instead, they are named istream, fstream, and so forth. In addition, the template source files are named istream.cc, fstream.cc, and so forth. If you include a standard iostream header, such as <istream>, in your program and your makefile has .KEEP_STATE, you will encounter problems. For example, if you include <istream>, make thinks that istream is an executable and uses the default rules to build istream from istream.cc resulting in very misleading error messages. (Both istream and istream.cc are installed under SC5.0/include/CC). To prevent make from using the default rules, use the -r option.