Author: Dave Gomboc
Date: 18:17:19 01/21/00
Go up one level in this thread
On January 21, 2000 at 21:08:18, Dann Corbit wrote: >On January 21, 2000 at 20:59:40, Dave Gomboc wrote: > >>On January 21, 2000 at 18:50:24, Heiner Marxen wrote: >> >>>I would like to add (the latest version of) the Nalimov EGTBs >>>to my program Chest. I understand that the probe code module >>>from Eugene Nalimov ("egtb.cpp" in the Crafty distribution) >>>is C++, in a non-trivial way (contains templates). >>> >>>My program up to now is pure ANSI-C, and I would very much prefer >>>to stick to ANSI-C, since I want it to be portable to all those >>>UNIX platforms, which have an ANSI-C compiler, but lack a C++ compiler >>>(e.g. my development platform). >>> >>>Is it somehow possible to access the Nalimov EGTBs by pure >>>ANSI-C source code? All suggestions welcome! >>> >>>Heiner Marxen heiner@drb.insel.de http://www.drb.insel.de/~heiner/ >> >>I haven't looked at the Nalimov probing code (recently), but you may be able to >>adapt the code to ANSI C by doing some #define and (multiple) #include hackery >>to simulate the template stuff, e.g. >> >>#define TemplateType float >>#include "template_code.c" >>#define TemplateType int >>#include "template_code.c" >> >>Kinda gross, but you asked. :) > >The code is full of C++ isms like scope resolution operator obj:: etc. >I don't think it will help much. E.g.: > return TEnumerate1 < piw1, x_piecePawn == piw1 ? true : false, false > >::Index (sqwk, sqw1, sqbk); Hmm... sounds like Heiner had better get a egtb.o for his platform like you suggested... or download g++ and compile it for his platform. Dave
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.