Indices and differentiation. CLN.

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Wed Jul 11 23:30:06 CEST 2001


Hi Marko,

On Wed, 11 Jul 2001, Marko Riedel wrote:
> 1. Could you make precompiled CLN library binaries for Linux (RPM
> format) available somewhere on the web?

They are already packaged at:
<ftp://ftpthep.physik.uni-mainz.de/pub/gnu/rpm/>

> 2. What is wrong here? I downloaded and installed
> GiNaC-0.9.1-1.i386.rpm from
> ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/rpm/ and I downloaded and
> compiled cln-1.1.1.tar.gz.
> 
> riedel at linuxfast:qselav > cat test.cpp
> #include <stdio.h>
> #include <ginac/ginac.h>
> using namespace std;
> using namespace GiNaC;
> 
> static symbol g("g");
> static symbol z("z");
> 
> 
> int main(int argc, char **argv){
>   ex T;
> 
>   T=indexed(g, idx(3, 1))*pow(z, 3);
>   cout << T.diff(z) << endl;
> }
> riedel at linuxfast:qselav > c++  test.cpp -o testdiff  -lcln -lginac
> /usr/local/lib/libginac.so: undefined reference to `__dynamic_cast_2'
> collect2: ld returned 1 exit status
> riedel at linuxfast:qselav > ls -l /usr/local/lib/libginac.so 
> lrwxrwxrwx    1 root     root           26 Jul 11 20:24 /usr/local/lib/libginac.so -> /usr/lib/libginac-0.9.so.1
> riedel at linuxfast:qselav > 

Probably a compiler error.  Which is you version of GCC?  EGCS is having
some problems with symbols that it cannot find for some obscure reason.
We recommend using GCC version 2.95.x or 3.0.

Regards
    -richy.
-- 
Richard Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>





More information about the GiNaC-devel mailing list