[Gdal-dev] libstdc problems...

Chris Nicholas cgnicholas at alamedanet.net
Thu Dec 29 14:04:07 EST 2005


what is the deal with libstdc++ ?  To get things to compile, seems I have to link in both versions 5 and 6. But even doing the most basic operations are crashing. 

I'm running mandrake 10.4, with gcc 3.4.1

(gdb) run
Starting program: /home/cgn/src/gdal-1.3.1/apps/gdalinfo 
[Thread debugging using libthread_db enabled]
[New Thread 1091274656 (LWP 7799)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1091274656 (LWP 7799)]
0x40d70ebb in std::__default_alloc_template<true, 0>::allocate () from /usr/lib/libstdc++.so.5
(gdb) where
#0  0x40d70ebb in std::__default_alloc_template<true, 0>::allocate () from /usr/lib/libstdc++.so.5
#1  0x40d70f59 in std::allocator<char>::allocate () from /usr/lib/libstdc++.so.5
#2  0x40d7708e in std::string::_Rep::_S_create () from /usr/lib/libstdc++.so.5
#3  0x40d7807f in std::string::_S_construct<char const*> () from /usr/lib/libstdc++.so.5
#4  0x40d743bf in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string
    () from /usr/lib/libstdc++.so.5
#5  0x402732af in GDALMajorObject::SetDescription () from /usr/local/lib/libgdal.so
#6  0x40141b63 in GDALRegister_BMP () from /usr/local/lib/libgdal.so
#7  0x4016b484 in GDALAllRegister () from /usr/local/lib/libgdal.so
#8  0x08049c0f in main ()
(gdb) 

thanks in advance
Chris




More information about the Gdal-dev mailing list