Mail Archives: djgpp/1998/08/13/09:47:35
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 -