Date: Thu, 4 Nov 1999 09:17:48 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Derek Battams cc: djgpp AT delorie DOT com Subject: Re: Problems Installing DJGPP In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 4 Nov 1999, Derek Battams wrote: > #include > > int main() > { > cout << "Hello World!"; > return 0; > } > > When I tried to compile it I got the following errors: > > c:/djgpp/tmp\ccqz94EV.o(.text+0x1f):test.cc: undefined reference to `cout' > c:/djgpp/tmp\ccqz94EV.o(.text+0x24):test.cc: undefined reference to > `ostream::op > erator<<(char const *)' Please see section 8.7 of the FAQ: it explains that you need to use gpp or gxx instead of gcc when linking C++ programs. The file with the suggestive name README.1ST also includes examples of command lines with which you should compile C and C++ programs.