[GiNaC-list] Cygwin compilation problem
Giuseppe Brandino
brandino at sissa.it
Thu Nov 6 15:38:29 CET 2008
Hello,
i installed both cln 1.2.2 and ginac 1.4.3 on cygwin.
The compilation, check and installation of the packages are fine.
However when i try to compile an easy tutorial program like
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;
int main()
{
symbol v("v"), c("c");
ex gamma = 1/sqrt(1 - pow(v/c,2));
ex mass_nonrel = gamma.series(v==0, 10);
cout << "the relativistic mass increase with v is " << endl
<< mass_nonrel << endl;
cout << "the inverse square of this series is " << endl
<< pow(mass_nonrel,-2).series(v==0, 10) << endl;
}
i get TONS of error like
/usr/local/lib/libginac.a(inifcns_nstdsums.o): In function
`_Z41__static_initialization_and_destruction_0ii':
/usr/local/include/cln/univpoly.h:454: undefined reference to `global
constructors keyed to cl_module__cl_UP_no_ring__firstglobalfun'
/usr/local/include/cln/univpoly.h:357: undefined reference to `global
constructors keyed to cl_module__cl_UP__firstglobalfun'
/usr/local/lib/libginac.a(inifcns_nstdsums.o): In function
`_Z41__static_initialization_and_destruction_0ii':
/usr/local/include/cln/SV_ringelt.h:47: undefined reference to `global
constructors keyed to cl_module__cl_SV_ringelt__firstglobalfun'
/usr/local/lib/libginac.a(inifcns_nstdsums.o): In function
`_Z41__static_initialization_and_destruction_0ii':
/usr/local/include/cln/SV_number.h:46: undefined reference to `global
constructors keyed to cl_module__cl_SV_number__firstglobalfun'
/usr/local/lib/libginac.a(inifcns_nstdsums.o): In function
`_Z41__static_initialization_and_destruction_0ii':
/usr/local/include/cln/GV_integer.h:57: undefined reference to `global
constructors keyed to cl_module__cl_GV_I__firstglobalfun'
/usr/local/lib/libginac.a(inifcns_nstdsums.o): In function
`_ZNK5GiNaC9containerISt4listE9imag_partEv':
/home/pinupower/ginac-1.4.3/ginac/container.h:(.text$_ZN3cln4cl_ND1Ev[cln::cl_N::~cl_N()]+0x24): undefined reference to
`cln::cl_free_heap_object(cln::cl_heap*)'
/home/pinupower/ginac-1.4.3/ginac/container.h:(.text$_ZNSt6vectorIN3cln4cl_NESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[std::vector<cln::cl_N, std::allocator<cln::cl_N> >::_M_insert_aux(__gnu_cxx::__normal_iterator<cln::cl_N*, std::vector<cln::cl_N, std::allocator<cln::cl_N> > >, cln::cl_N const&)]+0x102): undefined reference to
`cln::cl_free_heap_object(cln::cl_heap*)'
/home/pinupower/ginac-1.4.3/ginac/container.h:(.text$_ZNSt6vectorIN3cln4cl_NESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[std::vector<cln::cl_N, std::allocator<cln::cl_N> >::_M_insert_aux(__gnu_cxx::__normal_iterator<cln::cl_N*, std::vector<cln::cl_N, std::allocator<cln::cl_N> > >, cln::cl_N const&)]+0x2b4): undefined reference to
`cln::cl_free_heap_object(cln::cl_heap*)'
/home/pinupower/ginac-1.4.3/ginac/container.h:(.text$_ZNSt6vectorIN3cln4cl_NESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_[std::vector<cln::cl_N, std::allocator<cln::cl_N> >::_M_fill_insert(__gnu_cxx::__normal_iterator<cln::cl_N*, std::vector<cln::cl_N, std::allocator<cln::cl_N> > >, unsigned int, cln::cl_N const&)]+0x16b): undefined reference to
`cln::cl_free_heap_object(cln::cl_heap*)'
/home/pinupower/ginac-1.4.3/ginac/container.h:(.text$_ZNSt6vectorIN3cln4cl_NESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_[std::vector<cln::cl_N, std::allocator<cln::cl_N> >::_M_fill_insert(__gnu_cxx::__normal_iterator<cln::cl_N*, std::vector<cln::cl_N, std::allocator<cln::cl_N> > >, unsigned int, cln::cl_N const&)]+0x3cd): undefined reference to
`cln::cl_free_heap_object(cln::cl_heap*)'
/usr/local/lib/libginac.a(symmetry.o):/usr/local/include/cln/object.h:212:
more undefined references to `cln::cl_free_heap_object(cln::cl_heap*)'
follow
collect2: ld returned 1 exit status
and this is just a part of it.
I compile using
g++ prog.c -L/usr/local/lib -lcln -lginac -o prog.x
Can somebody help me?
thanks
Giuseppe Brandino
----------------------------------------------------------------
SISSA Webmail https://webmail.sissa.it/
Powered by Horde http://www.horde.org/
More information about the GiNaC-list
mailing list