felixtang / hoxchess

Automatically exported from code.google.com/p/hoxchess
0 stars 0 forks source link

Can't build on Suse 11 #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using Suse 11 on i386 and HOXChess_src_v0.5.1.0.zip

In hox_client, when trying to make all (after make prepare) I get:
g++ -I/usr/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -c  -o
XQWLight.o XQWLight.cpp
XQWLight.cpp: In member function ‘void PositionStruct::ClearBoard()’:
XQWLight.cpp:612: error: ‘memset’ was not declared in this scope
XQWLight.cpp: In function ‘int SearchBook()’:
XQWLight.cpp:1203: error: ‘bsearch’ was not declared in this scope
XQWLight.cpp:1239: error: ‘rand’ was not declared in this scope
XQWLight.cpp: In member function ‘int SortStruct::Next()’:
XQWLight.cpp:1390: error: ‘qsort’ was not declared in this scope
XQWLight.cpp: In function ‘int SearchQuiesc(int, int)’:
XQWLight.cpp:1444: error: ‘qsort’ was not declared in this scope
XQWLight.cpp:1461: error: ‘qsort’ was not declared in this scope
XQWLight.cpp: In function ‘int SearchRoot(int)’:
XQWLight.cpp:1607: error: ‘rand’ was not declared in this scope
XQWLight.cpp: In function ‘void SearchMain()’:
XQWLight.cpp:1623: error: ‘memset’ was not declared in this scope
XQWLight.cpp: In function ‘void XQWLight::initialize()’:
XQWLight.cpp:1686: error: ‘srand’ was not declared in this scope
make: *** [XQWLight.o] Error 1

Any advice?

Thanks,
jants

Original issue reported on code.google.com by jantsoa...@gmail.com on 14 Dec 2008 at 6:10

GoogleCodeExporter commented 8 years ago
I just fixed the exact errors in Ubuntu 8.10
It seems that the new OSs (Ubuntu and Suse) no longer include the old C headers 
by
default.
You can download the fix by checking out the source code change here:
http://code.google.com/p/hoxchess/source/detail?r=395
Here are the summary of the changes I made:
(1) Made sure "../lib/boost_1_36_0" is in the INCLUDE path.
(2) Explicitly included the required C headers (such as cstring and cstdlib)

Let me know if that solves your problem.

Note: I just happen to be aware of the defect today. It is strange that Google 
Code
does not notify me of the new incoming defects!

Original comment by huypha...@gmail.com on 9 Jan 2009 at 5:50

GoogleCodeExporter commented 8 years ago
For more details on how to build under Linux, see my new wiki pages here:

+ http://code.google.com/p/hoxchess/wiki/HowToBuild   (updated)
+ http://code.google.com/p/hoxchess/wiki/wxWidgetsInHOXChess  (new)

Original comment by huypha...@gmail.com on 15 Feb 2009 at 4:59