/usr/include/gmpxx.h:2096: error:

Y.P.Valani at city.ac.uk Y.P.Valani at city.ac.uk
Tue Sep 12 17:04:52 CEST 2006


Hello 

I get the following error when I compile my program. NB: I have
successfully compiled and run this file using fedora core 4.
_________________________________________________________
$ g++ energy2d_8.cc -lgmpxx -lgmp
In file included from energy2d_8.cc:76:
/usr/include/gmpxx.h: In destructor `
   __gmp_alloc_cstring::~__gmp_alloc_cstring()':
/usr/include/gmpxx.h:2096: error: `__gmp_free_func' undeclared (first
use this
   function)
/usr/include/gmpxx.h:2096: error: (Each undeclared identifier is
reported only
   once for each function it appears in.)
----------------------------------------------------------------------

my compiler info:

$ g++ -v Reading specs
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/specs
Configured with: ../gcc-3.3.6/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 3.3.6
--------------------------------------------------------------------

I have attached the config.log to hopefully give you more information
about my system.

hostname = topologilinux
uname -m = i686
uname -r = 2.6.10-co-0.6.2
uname -s = Linux
uname -v = #5 Sat Feb 5 10:19:16 IST 2005

Thanks yogi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 154445 bytes
Desc: config.log
Url : http://gmplib.org/list-archives/gmp-discuss/attachments/20060912/c4e35425/attachment-0001.bin 


More information about the gmp-discuss mailing list