[GiNaC-list] (no subject)

Richard B. Kreckel kreckel at ginac.de
Thu Jul 30 08:05:50 CEST 2009


Michael Hoffmann wrote:
> Hello, i'm using Ubuntu 9.04 with g++. I installed Ginac with Synaptik
> (.deb Packeges), I also installed cln pakeges. But it doesn't works!  :) 
> Here is the bug message:
> 
> g++ -o simple_function simple_function.o -lginac
> simple_function.o: In function `__static_initialization_and_destruction_0':
> /usr/local/include/ginac/archive.h:174: undefined reference to
> `GiNaC::unarchive_table_t::unarchive_table_t()'
> /usr/local/include/ginac/archive.h:174: undefined reference to
> `GiNaC::unarchive_table_t::~unarchive_table_t()'
> simple_function.o: In function `__static_initialization_and_destruction_0':
> /usr/local/include/ginac/lst.h:45: undefined reference to
> `GiNaC::lst_unarchiver::lst_unarchiver()'
> /usr/local/include/ginac/lst.h:45: undefined reference to
> `GiNaC::lst_unarchiver::~lst_unarchiver()'
> simple_function.o: In function `__static_initialization_and_destruction_0':
> /usr/local/include/ginac/constant.h:80: undefined reference to
> `GiNaC::constant_unarchiver::constant_unarchiver()'
> /usr/local/include/ginac/constant.h:80: undefined reference to
> `GiNaC::constant_unarchiver::~constant_unarchiver()'
> simple_function.o: In function `__static_initialization_and_destruction_0':
> /usr/local/include/ginac/fail.h:44: undefined reference to
> `GiNaC::fail_unarchiver::fail_unarchiver()'
> /usr/local/include/ginac/fail.h:44: undefined reference to
> `GiNaC::fail_unarchiver::~fail_unarchiver()'
> simple_function.o: In function `__static_initialization_and_destruction_0':
> /usr/local/include/ginac/integral.h:82: undefined reference to
> `GiNaC::integral_unarchiver::integral_unarchiver()'
> /usr/local/include/ginac/integral.h:82: undefined reference to
> `GiNaC::integral_unarchiver::~integral_unarchiver()'
> simple_function.o: In function `__static_initialization_and_destruction_0':
> /usr/local/include/ginac/matrix.h:178: undefined reference to
> `GiNaC::matrix_unarchiver::matrix_unarchiver()'
> /usr/local/include/ginac/matrix.h:178: undefined reference to
> `GiNaC::matrix_unarchiver::~matrix_unarchiver()'
> simple_function.o: In function `__static_initialization_and_destruction_0':
> /usr/local/include/ginac/numeric.h:206: undefined reference to
> `GiNaC::numeric_unarchiver::numeric_unarchiver()'
> /usr/local/include/ginac/numeric.h:206: undefined reference to
> `GiNaC::numeric_unarchiver::~numeric_unarchiver()'
> simple_function.o: In function `__static_initialization_and_destruction_0':
> ...
> 
> i don't  understand what he needs, cause i have the same system (Ubuntu
> 9.04) and the same installation of Ginac at work and it works. I already
> tried  to uninstall and to install new one more time - nothing changes!
> Please HELP!!!

It looks like there's an old (1.4.x) GiNaC library around. The compiler 
generated simple_function.o using new (1.5.x) GiNaC headers, but the 
linker picked up the old library. Find the old one and remove it.

Luck!
   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the GiNaC-list mailing list