[Gecode] .template patch to Gecode for fl_alloc

Alexander Samoilov alexander_samoilov at yahoo.com
Thu Jun 23 11:13:35 CEST 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gecode.patch
Type: application/octet-stream
Size: 653 bytes
Desc: 2727372033-gecode.patch
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20050623/4f2c1a4d/attachment.obj>


More information about the gecode-users mailing list