From: William Gacquer Newsgroups: comp.os.msdos.djgpp Subject: problems with _String.h : HELP! Date: Thu, 26 Mar 1998 15:58:10 +0100 Organization: Universite Paris-Sud, France. Lines: 26 Message-ID: <351A6D02.DFEC6CF1@obspm.fr> NNTP-Posting-Host: opdas26.obspm.fr 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 Precedence: bulk Hi ! I have some codes using the String (C++) class. This codes run OK on cygnus b19 gnuwin32 and on my linux box. The compilation is OK with DJGPP + g++2.8 but the linking fails : It does not find the String section in the libraries. here is the ouptut : > line.o: In function `wgline::add_Ba_line(void)': > line.cc:3: undefined reference to `String::operator=(char const *)' > line.o: In function `wgline::info(void)': > line.cc:2: undefined reference to `operator<<(ostream &, String const & > line.o: In function `wgline::operator=(wgline const &)': > line.cc:9: undefined reference to `String::operator=(String const &)' > line.o: In function `wgline::wgline(void)': > line.cc:1: undefined reference to `String::String(void)' > line.cc(.text+0x1cbc): undefined reference to `String::~String(void)' > line.o: In function `wgline::wgline(wgline const &)': > line.cc:3: undefined reference to `String::String(String const &)' > line.cc(.text+0x1d8c): undefined reference to `String::~String(void)' > line.o: In function `wgline::~wgline(void)': > line.cc(.text+0x1dcb): undefined reference to `String::~String(void)' The linking was done with -lgpp -lstdcxx. Can you tell me what is wrong? William Gacquer