From: Skye Newsgroups: comp.os.msdos.djgpp,comp.lang.c++ Subject: Re: Undefined cout? Date: Mon, 31 Mar 1997 22:46:08 -0800 Organization: Uniserve Lines: 27 Message-ID: <3340AF30.5984@geocities.com> References: Reply-To: s_c AT geocities DOT com NNTP-Posting-Host: dy2-45.van.tvs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp John Wong wrote: > > I've got a question about DJGPP installation. Now I've just installed > DJGPP 2.0, and find the following program doesn't compile: > > #include > > ....... make sure you are using the -c switch when you compile and link using gxx. i.e. src.cc [or] src.cpp gcc -c src.cc -o src.o [then if all goes well...] gxx -o src.exe src.o That is the proper way to compile and link a C++ program. Check out the readme.1st file provided with the distibution. It has a simple example of this. -SC