Gaviota Tablebases and Delphi

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Gaviota Tablebases and Delphi

Post by michiguel »

I was asked what is the best way to plug the GTBs API (written in C) to a program written in Delphi or Pascal in windows. Preparing a DLL? I am not an expert on this at all, so any help will be welcome.

I found how to do this in Free Pascal in Linux but I am not so sure it extrapolates well to Windows.

Miguel
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Re: Gaviota Tablebases and Delphi

Post by Dirt »

You're releasing the source, right? Could the Delphi developer compile them with C++ Builder and make compatible binaries?
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Gaviota Tablebases and Delphi

Post by Matthias Gemuh »

He can make a static library with C++ Builder and link it into Delphi code.

I program ChessGUI with C++ Builder 5 and link in Gaviota32TB.lib and gtb-probe.h.

Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de