[GiNaC-list] linking error with ginac example program derivative.cpp

Robert Durkacz robert.durkacz at gmail.com
Wed Jul 11 14:54:24 CEST 2012

I am just starting with ginac but unable to build the derivative.cpp
program from doc/examples/ in ginac-1.6.2 Others of the examples
that I tried were built successfully, eg compile1.cpp and compile3.exe

I am using these versions of ginac and cln:
These libraries were built without problems as per INSTALL instructions.

compiler (gcc --version):
    gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

platform (uname -a):
    CYGWIN_NT-5.1 dell 1.7.15(0.260/5/3) 2012-05-09 10:25 i686 Cygwin

command line of compile and link steps:
    g++ -c -Wall -g -I.. -I../ginac -DIN_GINAC  -o gcc/derivative.o
    g++ -o derivative gcc/derivative.o ../ginac/.libs/libginac.a
/usr/local/lib/libcln.a -ldl
    ../ginac/.libs/libginac.a(parser.o): In function
multiple definition of `GiNaC::container<std::list>::info(unsigned
int) const'
first defined here
    collect2: ld returned 1 exit status
It is beyond my current abilities to sort out this problem. Could
someone tell me what is going wrong?

More information about the GiNaC-list mailing list