[Gecode] .template patch to Gecode for fl_alloc
Christian Schulte
schulte at imit.kth.se
Thu Jun 23 13:41:08 CEST 2005
Hi Alexander,
thanks for the patch. I just checked that it also works for GCC 4 and Intel
and Microsoft.
Maybe Guido can update the tarballs...
Christian
--
Christian Schulte, http://www.imit.kth.se/~schulte/
-----Original Message-----
From: gecode-bounces at ps.uni-sb.de [mailto:gecode-bounces at ps.uni-sb.de] On
Behalf Of Alexander Samoilov
Sent: Thursday, June 23, 2005 11:14 AM
To: gecode at ps.uni-sb.de
Subject: [Gecode] .template patch to Gecode for fl_alloc
Dear developers,
I've downloaded gecode-2005-06-21.tar.gz and tried
to compile it. Gcc 3.4.4 compiled it just excellent
but
gcc 3.2.3 failed:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DGECODE_BUILD_INT -O3 -finline-limit=3000 -DNDEBUG
-Wall -MT regular/dfa.lo -MD -MP -MF
regular/.deps/dfa.Tpo -c regular/dfa.cc -o
regular/dfa.o
../kernel/core.icc: In member function `void*
Gecode::Space::fl_alloc() [with
unsigned int <anonymous> = 16]':
../int/var/rangelist.icc:98: instantiated from here
../kernel/core.icc:73: no matching function for call
to `Gecode::MemoryManager
::fl_alloc()'
../kernel/core.icc: In member function `void
Gecode::Space::fl_dispose(Gecode::FreeList*,
Gecode::FreeList*) [with
unsigned int <anonymous> = 16]':
../int/var/rangelist.icc:103: instantiated from here
../kernel/core.icc:78: no matching function for call
to `Gecode::MemoryManager
::fl_dispose(Gecode::FreeList*&,
Gecode::FreeList*&)'
make[2]: *** [regular/dfa.lo] Error 1
I'm sending small patch for fixing it.
With this patch g++ 3.2.3 compiles gecode ok
but consumes much more time for the job then 3.4.4 :(
G++ 3.4.4 works much faster then
The patch should work with g++ 3.4.4 so it doesn't
harm to apply it. However I can't check it for MSVC.
If MSVC failed to accept the .template construct,
conditional compilation would help.
Best wishes,
Alexander Samoilov
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
More information about the gecode-users
mailing list