Jeremey thanks for your time and assistance. Unfortunatle, it still did not compile here in VS2010 GUI. I still got the 'Output' message though. Heres' the error message:
Code: Select all
1>------ Build started: Project: stock_pa_gtb, Configuration: Release x64 ------
1> benchmark.cpp
1> bitbase.cpp
1> bitboard.cpp
1>..\..\bitboard.cpp(312): warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>..\..\bitboard.cpp(318): warning C4146: unary minus operator applied to unsigned type, result still unsigned
1> book.cpp
1> egtb.cpp
1> endgame.cpp
1> evaluate.cpp
1> history.cpp
1> main.cpp
1> material.cpp
1> misc.cpp
1> move.cpp
1> movegen.cpp
1> movepick.cpp
1> pawns.cpp
1> position.cpp
1> san.cpp
1> search.cpp
1> timeman.cpp
1> tt.cpp
1> Compiling...
1> uci.cpp
1> ucioption.cpp
1>egtb.obj : error LNK2001: unresolved external symbol tb_probe_soft
1>egtb.obj : error LNK2001: unresolved external symbol tb_probe_hard
1>egtb.obj : error LNK2001: unresolved external symbol tbpaths_add
1>egtb.obj : error LNK2001: unresolved external symbol tb_done
1>egtb.obj : error LNK2001: unresolved external symbol tbcache_done
1>egtb.obj : error LNK2001: unresolved external symbol tbcache_init
1>egtb.obj : error LNK2001: unresolved external symbol tb_probe_WDL_soft
1>egtb.obj : error LNK2001: unresolved external symbol tbpaths_done
1>egtb.obj : error LNK2001: unresolved external symbol tbpaths_init
1>egtb.obj : error LNK2001: unresolved external symbol tbstats_reset
1>egtb.obj : error LNK2001: unresolved external symbol tb_probe_WDL_hard
1>egtb.obj : error LNK2001: unresolved external symbol tb_init
1>C:\Users\PRIMA\Desktop\stock_pa_gtb\src\stock_pa_gtb\x64\Release\stock_pa_gtb.exe : fatal error LNK1120: 12 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Which leads me to another thing I've been curious about;
(1) as you've seen, the stockfish 2.01pa-gtb's source has it's own source files in it.
(2)Within this src folder, there's the 'egtb' folder which has gtb-related files, the progname.h, tbprobe.c, and version.h files in it.
(3) Within this egtb folder, there are sysport folder, gtb folder, and compression folder.
(4) Within the compression folder, there is the "wrap.c/wrap.h source files + huffman folder with its own hzip.c/h; the liblzf folder with its izf.h, c.c, d.c, h source files; the lzma folder with its source files, and the zlib folder with its own source.
With all these sub folders within the stockfish source, would it be better if I moved all the sources from the sub folders to the main stockfish source folder and compile, OR, do I have to keep using the "Add items" function from the VS Compile GUI till everything is added and then move to "Build" it?
Kingliveson had suggested (or at least inferred) that in Windows OS, he would move all source related files from sub folders to the main one or have everything in one place as Windows likes it this way. I tried this with Stockfish-gtb but still got errors. Attempting to compile via Command prompt (as thought by gaard), I still get this errors and never successful in compiling.
If I just "Add items" exclusively from its main source folder, it still won't compile. Which is the better solution here? Thanks in advance.