compilation problem

chrisd at catv7250.extern.kun.nl chrisd at catv7250.extern.kun.nl
Mon Sep 3 18:15:21 CEST 2001


Hello everybody,

I have just compiled the new GiNaC at my place. This took a bit more time
than I expected because of the following compiler error

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2 -c
numeric.cpp
-fPIC -DPIC -o .libs/numeric.lo
/usr/include/g++-v3/bits/stl_construct.h: In function `void
   std::_Construct(_T1*, const _T2&) [with _T1 = cln::cl_RA, _T2 =
   cln::cl_RA]':
numeric.cpp:128:   instantiated from here
/usr/include/g++-v3/bits/stl_construct.h:78: no matching function for call
to
   `cln::cl_RA::operator new(unsigned int, void*&)'
/usr/local/include/cln/rational_class.h:35: candidates are: static void*
   cln::cl_RA::operator new(unsigned int)
/usr/local/include/cln/rational_class.h:36:                 static void*
   cln::cl_RA::operator new(unsigned int, cln::cl_RA*)
make[2]: *** [numeric.lo] Error 1
make[2]: Leaving directory `/home/chrisd/download/GiNaC-0.9.3/ginac'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chrisd/download/GiNaC-0.9.3'
make: *** [all-recursive-am] Error 2

So, the file numeric.cpp does not compile. I also found the source of the
error. If I comment out all calls to

	vector<cln::cl_RA>::push_back(cln::cl_RA)

the error messages disappear. All calls to this function happen inside
the function

	const numeric bernoulli(const numeric &nn)

and there are two of these calls. I use gcc 3.0.1 and cln 1.1. Hopefully
maintainers find this information usefull to correct the error or come up
with a work around.

Greetings,
Chris Dams




More information about the GiNaC-list mailing list