This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Help: libstdc++-2.8.0 and malloc
- To: libstdc++ at gcc dot gnu dot org
- Subject: Help: libstdc++-2.8.0 and malloc
- From: "krish K" <kri1233 at rediffmail dot com>
- Date: 9 Nov 2001 17:05:47 -0000
- Cc: t_gecks at informatik dot uni-kl dot de
- Reply-To: "krish K" <kri1233 at rediffmail dot com>
Hello All,
I am trying to crosscompile the libstdc++-2.8.0 library for am33 platform on linux 6.2 using gcc 2.95.3.
I am able to build the library without hassels. When I run the tests in the libstdc++/tests directory, the tests fail. After more debugging, here is the resolution
iostreams (cin, cout) works fine.
If I define a class and create an object on the stack, it works fine.
If I define a class and use a "new" operator, it fails.
Basically, anytime the malloc gets called, the program crashes.
If I use "malloc" in a C program, everything works fine.
Please Help !!!!!