Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Spike 1.0 Mainz released!

Author: Volker Böhm

Date: 22:34:34 08/17/05

Go up one level in this thread


On August 17, 2005 at 17:27:08, Dann Corbit wrote:

>On August 17, 2005 at 15:06:29, Volker Böhm wrote:
>
>>On August 17, 2005 at 13:47:55, Joshua Shriver wrote:
>>
>>>Will you be open sourcing this? Can I have a copy so I can make a linux binary?
>>>
>>>Joshua Shriver
>>
>>Hi Joshua,
>>
>>no we will not open sourcing it! But if you like you can help me building a
>>linux version. I have a SuSE Linux 8.1 Professional here that I hopefully can
>>install next weekend. Then try a compile to find out which statement will be
>>problematic.
>>
>>Perhaps you can answer me some questions in advance:
>>
>>Which #define derictive can I use to find out I am using GNU C++ under linux?
>
>http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
>
>>In Windows I use __int64 for 64-Bit integer variables. What do I have to use
>>under GCC and linux?
>
>long long
>
>>I think the problems that will be left then are the following:
>>
>>1. I use a thread to calculate the next move. Thus I need a way how to start
>>threads in linux.
>
>http://sourceware.org/pthreads-win32/
>
>>2. I am linking a binary file that contains the book data. Thus I have to find a
>>way to link a binary file under linux and to find the address of this data at
>>runtime.
>
>Do you mean a symlink or something else?

Don´t know what a "symlink" is. In Windows I add a biniray resource to the
resource file. The resource file is linked by a link command. In source code I
am doing the following:

HRSRC aData;
aData = FindResource(NULL, "IDR_BIB", "BINARY");
mSize = 0;

if (aData != 0) {
	HGLOBAL  aGlobal = LoadResource(NULL, aData);
	char* apData = (char*) LockResource(aGlobal);
...



>
>>If you like to help me porting to linux and perhaps testing the result under
>>linux please send me an email to mangar@yahoo.com.
>>
>>Thanks
>>
>>Greetings Volker



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.