delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/13/09:47:35

From: Charles Krug <charles AT pentek DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 <string>, <map>, <vector>, and a few other
> related headers.

One problem that can come up with <string> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019