From: Charles Krug Newsgroups: comp.os.msdos.djgpp Subject: Re: Template/STL questions Date: Thu, 13 Aug 1998 09:34:22 -0400 Lines: 25 Message-ID: <35D2EB5D.C1AF7939@pentek.com> References: <35D24762 DOT 7E27 AT easystreet DOT com> NNTP-Posting-Host: mail.pentek.com 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 Al Christians wrote: > I'm having trouble with a big program failing with little dignity and > a segment fault, and am fishing for any ideas about what might be > breaking it. TIA for any suspicions or likely suspects. The program > makes heavy use of the , , , and a few other > related headers. One problem that can come up with is that djgpp comes with two string classes: The STL string template class, and the GNU string class. Using calls into one when you mean the other can have "unpredictable and undesirable" (tm) results. I had similar troubles last year when I was learning my way around C++, with much the same symptoms. -- Charles Krug, Jr. Application Engineer Pentek Corp 1 Park Way Upper Saddle River, NJ 07458