I am following the instructions on the Stockfish page which look very easygoing:
http://support.stockfishchess.org/kb/ad ... on-windows
I've installed MinGW successfully and run the "make" script.
Now, have a look at the error in the compilation process, please.
Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\>cd Stockfish
C:\Stockfish>cd src
C:\Stockfish\src>make profile-build ARCH=x86-32 COMP=mingw
make ARCH=x86-32 COMP=mingw config-sanity
make[1]: Entering directory `/c/Stockfish/src'
Config:
debug: 'no'
optimize: 'yes'
arch: 'i386'
bits: '32'
prefetch: 'yes'
bsfq: 'no'
popcnt: 'no'
sse: 'yes'
pext: 'no'
Flags:
CXX: g++
CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -Wextra -Wshad
ow -DNDEBUG -O3 -msse
LDFLAGS: -static
Testing config sanity. If this fails, try 'make help' ...
make[1]: Leaving directory `/c/Stockfish/src'
Step 0/4. Preparing for profile build.
make ARCH=x86-32 COMP=mingw gcc-profile-prepare
make[1]: Entering directory `/c/Stockfish/src'
make ARCH=x86-32 COMP=mingw gcc-profile-clean
make[2]: Entering directory `/c/Stockfish/src'
make[2]: Leaving directory `/c/Stockfish/src'
make[1]: Leaving directory `/c/Stockfish/src'
Step 1/4. Building executable for benchmark ...
make ARCH=x86-32 COMP=mingw gcc-profile-make
make[1]: Entering directory `/c/Stockfish/src'
make ARCH=x86-32 COMP=mingw \
EXTRACXXFLAGS='-fprofile-generate' \
EXTRALDFLAGS='-lgcov' \
all
make[2]: Entering directory `/c/Stockfish/src'
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -fprofile-generate -W
extra -Wshadow -DNDEBUG -O3 -msse -c -o benchmark.o benchmark.cpp
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cmath:44:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\random:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h
:65,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from movepick.h:24,
from thread.h:32,
from benchmark.cpp:29:
c:\mingw\include\math.h: In function 'float hypotf(float, float)':
c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
{ return (float)(_hypot (x, y)); }
^
http://ehc.ac/p/mingw/bugs/2250/The work-around is to add -D__NO_INLINE__ to the compile time options, to hide the offending inline function implementation.
Is this the right solution and if it is, how do I add that to the compile time options?
Kind Regards
Theo