From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems while linking programs-- Date: Wed, 29 Dec 1999 10:23:24 +0200 Organization: NetVision Israel Lines: 11 Message-ID: References: NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 946455697 2723 199.203.121.2 (29 Dec 1999 08:21:37 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 29 Dec 1999 08:21:37 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 Tue, 28 Dec 1999, Marko Lokkila (Procyon) wrote: > gcc test.cpp -o test.exe > > I get the following errors: > > f:/djgpp/tmp\ccdaaaaa(.text+0x11):testi.cpp: undefined reference to `cout' See section 8.7 of the FAQ. You need to use gxx instead of gcc to link C++ programs. This is also explained in README.1ST.