This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Help: libstdc++-2.8.0 and malloc



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 !!!!!
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]