* Run-time error with bits/basic_string.h
@ 2002-11-13 11:53 Matt
2002-11-13 12:33 ` bjorn rohde jensen
0 siblings, 1 reply; 2+ messages in thread
From: Matt @ 2002-11-13 11:53 UTC (permalink / raw)
To: gcc-help
I have built a program using GCC 3.0.1. When I try to run it, I get a
Segmentation Fault. When I use GDB to debug the core file, I get the
following:
#0 _Z41__static_initialization_and_destruction_0ii (__initialize_p=1,
__priority=65535)
at /users/hodgem/gcc301/build/include/g++-v3/bits/basic_string.h:246
246 { return &((reinterpret_cast<_Rep*> (_M_data()))[-1]); }
The program dies before it gets to main() so I can't use the debugger to
trace through. I haven't been able to find anyone else who's run into this
problem on the web.
Help would be greatly appreciated.
Matt
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Run-time error with bits/basic_string.h
2002-11-13 11:53 Run-time error with bits/basic_string.h Matt
@ 2002-11-13 12:33 ` bjorn rohde jensen
0 siblings, 0 replies; 2+ messages in thread
From: bjorn rohde jensen @ 2002-11-13 12:33 UTC (permalink / raw)
To: Matt; +Cc: gcc-help
Hi Matt,
I have had C++ programs segfault before main too,
and i always found the problem to be with linking
C++ libs compiled with a different version of the
compiler to be the cause. It is worth a check;)
Yours sincerely,
Bjorn
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-13 20:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 11:53 Run-time error with bits/basic_string.h Matt
2002-11-13 12:33 ` bjorn rohde jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).