X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "jansb000" Newsgroups: comp.os.msdos.djgpp Subject: Re: Linking problem with GCC 3.0.2 Date: Tue, 11 Dec 2001 19:25:05 +0100 Organization: Planet Internet Lines: 45 Message-ID: <9v5ipv$cu8$1@reader08.wxs.nl> References: NNTP-Posting-Host: ipc3797b24.dial.wxs.nl X-Trace: reader08.wxs.nl 1008094847 13256 195.121.123.36 (11 Dec 2001 18:20:47 GMT) X-Complaints-To: abuse AT planet DOT nl NNTP-Posting-Date: 11 Dec 2001 18:20:47 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanx Andris. After makeing a clean installation, starting from an empty directory, the problem is solved. "Andris Pavenis" wrote in message news:Pine DOT A41 DOT 4 DOT 05 DOT 10112110914290 DOT 90628-100000 AT ieva06... > > > On Mon, 10 Dec 2001, jansb000 wrote: > > > I have created this program: > > > > #include > > using namespace std; > > int main() { > > cout << "hello" << endl; > > } > > > > When I compile this (with RHIDE) I get this: > > > > Compiling: test.cpp > > no errors > > Creating: test.exe > > Error: test.o: In function `main': > > test.cpp(7) Error: undefined reference to `std::cout' > > > > This is followed by a long list of other errors about undefined std::xxxx > > functions. > > > > If I type a command-line: "gcc -o test.exe test.cpp -lstdcxx" I get the same > > result. > > What am I doing wrong? > > > > You may have old libstdcxx.a (from previous version of GCC) in lib > directory. Please remove it (or move out of way...). > > Andris > > > >