linking problems with libstdc++ version 5 and 6

Coumou Dim
Fri Apr 7 20:37:00 GMT 2006


I have a linking problem with libstdc++. I use the Gnu g++ 4.0.2 compiler on an dual core, dual processor Opteron AMD64 machine with Suse Linux 10.0 for compiling and linking a large C++ finite element code. This compiler automatically links with However, during linking,  a warning is produced that one of the external libraries (a multigrid solver written in Fortran and compiled with Gnu Fortran 3.7 compiler), which I need to use requires the library (which I have installed) and this could conflict with 

If I ignore this warning, at run time the following error is produced (though the program does not crash):,

*** glibc detected *** free(): invalid next size (fast): 0x0000000000c105a0 ***

If I remove from the /usr/lib directory and replace it with a hardlink from to, I get the following link error:

/usr/lib/ undefined reference to `__gxx_personality_v0@CXXABI_1.2'
collect2: ld returned 1 exit status
make: *** [run] Error 1 is the external Fortran multigrid solver library.

If I use a different version of library (i.e. one that only runs on a single processor) the above linking error disappears when using the hardlink from to and the program runs fine.

Does anybody have an idea what this run time error is and how to fix it? Or does anybody know how to resolve the conflict between libstdc++ versions 5 and 6 and fix the link error when doing the hardlink from to Is not backward compatible?

Thanks in advance for your help and kind regards,


More information about the Gcc-help mailing list