Hi folks, I installed the GiNaC Debian package on my machine. I now have ||/ Name Version Description +++-==============-==========-============== ii libginac-dev 1.3.0-2 The GiNaC framework (development files) I get the following warning when I link my test program: /usr/bin/ld: warning: libstdc++.so.5, \ needed by /usr/bin/../lib/libginac.so, \ may conflict with libstdc++.so.6 The program segfaults in GiNaC::matrix::operator= (). How do I tell the linker to link against libstdc++.so.5 only, thereby avoiding conflicts? This is my version of GCC: gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure Thread model: posix gcc version 4.0.2 Thanks! -- +------------------------------------------------------------+ | Marko Riedel, EDV Neue Arbeit gGmbH, mriedel@neuearbeit.de | | http://www.geocities.com/markoriedelde/index.html | +------------------------------------------------------------+
Hi, Marko Riedel schrieb:
I installed the GiNaC Debian package on my machine. I now have
||/ Name Version Description +++-==============-==========-============== ii libginac-dev 1.3.0-2 The GiNaC framework (development files)
I get the following warning when I link my test program:
/usr/bin/ld: warning: libstdc++.so.5, \ needed by /usr/bin/../lib/libginac.so, \ may conflict with libstdc++.so.6
The program segfaults in GiNaC::matrix::operator= (). How do I tell the linker to link against libstdc++.so.5 only, thereby avoiding conflicts?
I don't think this is possible.
This is my version of GCC:
gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure Thread model: posix gcc version 4.0.2
If you use gcc 4.* your programs will link against libstdc++.so.6 (it's part of gcc). Your Debian package seems to be compiled with gcc 3.* and therefore links libstdc++.so.5. Mixing both libstdc++ version doesn't work. So, either you have to compile libginac locally for yourself using gcc 4.*, or you have to use gcc 3.* to compile your program. Regards, Jens
participants (2)
-
Jens Vollinga
-
Marko Riedel