Date: Wed, 9 Oct 1996 13:14:18 +0200 (IST) From: Eli Zaretskii To: Kim Robert Blix Cc: djgpp AT delorie DOT com Subject: Re: So.. What can be wrong here? In-Reply-To: <53epl5$5m0@ranger.interlink.no> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 8 Oct 1996, Kim Robert Blix wrote: > compiled with "gcc hello.C" .. > I get a "undefined reference to 'cout'" > and "undefined reference to 'ostream::operator<<(char *)' > (not sure if the last line is 100 percent correct though.) The FAQ clearly advises (in section 8.7) to use `gxx' rather than `gcc' when compiling C++ program, like so: gxx hello.C (Btw, I suggest you call your C++ source files .cc, to avoid the problems of DOS case-insensitivity.) `gxx' will then automatically instruct the linker to search the appropriate C++ libraries, and you won't see those error messages anymore.