From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: String Object Linking Errors Organization: Pin Eight Software Message-ID: References: <20000114233705 DOT 01274 DOT 00000555 AT ng-fx1 DOT aol DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 X-Trace: /KiKeWWrZPIyWIA7suHfJbTxGEIHErq5KNHhCStow16IVxIjC5xo78idjg9bMrl4AlBrpg8/IlP7!0F65s1m8id4Wxi9Be+6nFyu1zVyknAvJQ4pKjRuO+fdm3vw37PwrcFX09FaA0zY/CMgxG1cYDw== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 15 Jan 2000 04:41:41 GMT Distribution: world Date: Sat, 15 Jan 2000 04:41:41 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com daphire AT aol DOT com (Da Phire) wrote in message <20000114233705 DOT 01274 DOT 00000555 AT ng-fx1 DOT aol DOT com>... >I have written a program in C++ that uses the header (no, not >, just ). When I compile it, I get all sorts of linking >errors like this one: >rpg.cc:86: undefined reference to 'basic_stringstring_char_traits>::basic_string(void) > >I understand this to mean that the basic_string class is prototyped in >, but the actual source code for the member functions is somewhere else >- a library, perhaps? I don't know how to access it though. Can anyone help? If you're using gcc to link, try using gxx instead. It knows what libraries go into a C++ program. -- Damian Yerrick http://yerricde.tripod.com/ View full sig at http://www.rose-hulman.edu/~yerricde/sig.html Comment on story ideas at http://home1.gte.net/frodo/quickjot.html And yes, I have set my attribute line to emulate Outhouse Express.