Hi folks, I downloaded, compiled and installed GiNaC using the following 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 I now appear to have a working setup. E.g. I can run "ginsh": ginsh - GiNaC Interactive Shell (ginac V1.3.5) __, _______ Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, (__) * | Germany. This is free software with ABSOLUTELY NO WARRANTY. ._) i N a C | You are welcome to redistribute it under certain conditions. <-------------' For details type `warranty;'. When I compile and run my test program, however, I get the following error message: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found \ (required by /usr/local/lib/libginac-1.3.so.2) Am I perhaps missing some environment variables or compiler switches here? I have the following files: /usr/include/c++/3.3/cxxabi.h /usr/local/include/c++/4.0.2/i686-pc-linux-gnu/bits/cxxabi_tweaks.h /usr/local/include/c++/4.0.2/cxxabi.h I compiled my program with the following command: c++ -g complete41.cpp -o complete41 -I/usr/local/include -lcln -lginac Any help would be appreciated. Best regards, Marko Riedel -- +------------------------------------------------------------+ | Marko Riedel, EDV Neue Arbeit gGmbH, mriedel@neuearbeit.de | | http://www.geocities.com/markoriedelde/index.html | +------------------------------------------------------------+
Hi, Marko Riedel schrieb:
When I compile and run my test program, however, I get the following error message:
/usr/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found \ (required by /usr/local/lib/libginac-1.3.so.2)
Am I perhaps missing some environment variables or compiler switches here? I have the following files:
/usr/include/c++/3.3/cxxabi.h /usr/local/include/c++/4.0.2/i686-pc-linux-gnu/bits/cxxabi_tweaks.h /usr/local/include/c++/4.0.2/cxxabi.h
I compiled my program with the following command:
c++ -g complete41.cpp -o complete41 -I/usr/local/include -lcln -lginac
I would use c++ `ginac-config --cppflags --libs` -g -o complete41 complete41.cpp just to be sure to get the right flags. This ginac-config script gives you the right include and library paths. Did you un-install the Debian GiNaC package? If not, you may have linked against the "old" Debian libginac, because your command line is missing the -L flag. By the way, CLN is also C++ library and if you use the package from Debian you will have the same mixing problem as before. Compile CLN as well? And then you will need to compile libgmp with C++ interface enabled as well ... If you don't really need gcc 4.* it is probably easier to stick to the Debian default build chain. Regards, Jens
Jens Vollinga writes:
Hi,
Marko Riedel schrieb:
When I compile and run my test program, however, I get the following error message:
/usr/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found \ (required by /usr/local/lib/libginac-1.3.so.2)
Am I perhaps missing some environment variables or compiler switches here? I have the following files:
/usr/include/c++/3.3/cxxabi.h /usr/local/include/c++/4.0.2/i686-pc-linux-gnu/bits/cxxabi_tweaks.h /usr/local/include/c++/4.0.2/cxxabi.h
I compiled my program with the following command:
c++ -g complete41.cpp -o complete41 -I/usr/local/include -lcln -lginac
Hello there, in case anyone is interested, the problem was due to the fact that I was linking against the wrong version of libstdc++ (the one that came as a Debian package, namely libstdc++6). Once I made sure to link against the version that came in my GCC 4.0 TGZ archive my test program compiled and produced correct results. This was achieved by setting LD_LIBRARY_PATH to /usr/local/lib. Best regards, Marko -- +------------------------------------------------------------+ | Marko Riedel, EDV Neue Arbeit gGmbH, mriedel@neuearbeit.de | | http://www.geocities.com/markoriedelde/index.html | +------------------------------------------------------------+
participants (2)
-
Jens Vollinga
-
Marko Riedel