Looks like line 7 of RobboTotal_iniz.c is bad. Probably "REGISTERED" is a restricted name. Try changing all occurrences of it to "REGISTERED0" or something.
As for folders, I really can figure out what Windows is doing. It likes to put everything in one folder, but I don't know if it keeps the internal structure.
Error 16 error : expression must have arithmetic or pointer type C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTriple_iniz.c 624 1 ComStockfish-102RBs-ICC-x64
For this, eliminate the second half of that line (624 in RobboTriple_iniz.c). Have it just be
Turns out that I'm supposed to track down some floating-point bug in our Windows build here, so I refreshed my memory on how to deal with Windows via attempting to build ComStock.
I had no linking errors after applying all the above fixes, though I did have to be careful whether or not it was in "Console" mode (I'm still not sure I understand this concept), and I ditched all the Gaviota stuff for simplicity. I was able to do "go depth 15", though the system is so ridiculous (MSVC2005, and I can only access it remotely with no copy/paste) that I can't be bothered to copy over RobboTripleBases and see if they actually works. But again, I didn't have any linking error beyond the Console mode question.
I applied the if (hFind == INVALID_HANDLE_VALUE), that is, from the if (hFind == INVALID_HANDLE_VALUE || ffd == NULL) I deleted the || ffd == NULL.
But the error still persists and will not compile.
Error 39 error LNK1120: 12 unresolved externals C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\x64\Release\CSF-102RBs-ICC-x64.exe CSF-102RBs-ICC-x64
Error 28 error LNK2019: unresolved external symbol tb_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 35 error LNK2019: unresolved external symbol tb_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 30 error LNK2019: unresolved external symbol tb_probe_hard referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 32 error LNK2019: unresolved external symbol tb_probe_soft referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 31 error LNK2019: unresolved external symbol tb_probe_WDL_hard referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 33 error LNK2019: unresolved external symbol tb_probe_WDL_soft referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 27 error LNK2019: unresolved external symbol tbcache_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 36 error LNK2019: unresolved external symbol tbcache_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 38 error LNK2019: unresolved external symbol tbpaths_add referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 29 error LNK2019: unresolved external symbol tbpaths_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 34 error LNK2019: unresolved external symbol tbpaths_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Error 37 error LNK2019: unresolved external symbol tbstats_reset referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ) C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj CSF-102RBs-ICC-x64
Warning 4 warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers) C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_cache.c 22 1 CSF-102RBs-ICC-x64
Warning 12 warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers) C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTripleDisk.c 24 1 CSF-102RBs-ICC-x64
Warning 18 warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers) C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_cache.c 22 1 CSF-102RBs-ICC-x64
Warning 3 warning #266: function "DeRegisterRobboTotalBases" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c 34 1 CSF-102RBs-ICC-x64
Warning 8 warning #266: function "DeRegisterRobboTotalBases" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c 34 1 CSF-102RBs-ICC-x64
Warning 9 warning #266: function "InitInitTripleBaseCache" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c 241 1 CSF-102RBs-ICC-x64
Warning 2 warning #266: function "InitTotalBaseUtility" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c 13 1 CSF-102RBs-ICC-x64
Warning 7 warning #266: function "InitTotalBaseUtility" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c 13 1 CSF-102RBs-ICC-x64
Warning 10 warning #266: function "InitTripleHash" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c 242 1 CSF-102RBs-ICC-x64
Warning 16 warning #266: function "OfftoneTripleSMP" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c 44 1 CSF-102RBs-ICC-x64
Warning 17 warning #266: function "OfftoneTripleSMP" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c 53 1 CSF-102RBs-ICC-x64
Warning 13 warning #266: function "STAT" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple_iniz.c 486 1 CSF-102RBs-ICC-x64
Warning 14 warning #266: function "STAT" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple_iniz.c 518 1 CSF-102RBs-ICC-x64
Warning 15 warning #266: function "SubsumeTripleSMP" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c 41 1 CSF-102RBs-ICC-x64
Warning 11 warning #266: function "triple_statistica" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c 295 1 CSF-102RBs-ICC-x64
Warning 20 warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalBase.h") C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_usage.c 6 1 CSF-102RBs-ICC-x64
Warning 6 warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalCode\RobboTotalBase.h") C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_usage.c 6 1 CSF-102RBs-ICC-x64
Warning 19 warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalBase.h") C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_usage.c 5 1 CSF-102RBs-ICC-x64
Warning 5 warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalCode\RobboTotalBase.h") C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_usage.c 5 1 CSF-102RBs-ICC-x64
Warning 1 warning #47: incompatible redefinition of macro "MEMALIGN" (declared at line 18 of "..\..\RobboTripleCode/IH-win-linux.h") C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleGlue.cpp 177 1 CSF-102RBs-ICC-x64
Warning 21 warning LNK4042: object specified more than once; extras ignored C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\RobboTotal_iniz.obj 1 1 CSF-102RBs-ICC-x64
Warning 22 warning LNK4042: object specified more than once; extras ignored C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_cache.obj 1 1 CSF-102RBs-ICC-x64
Warning 23 warning LNK4042: object specified more than once; extras ignored C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_decomp.obj 1 1 CSF-102RBs-ICC-x64
Warning 24 warning LNK4042: object specified more than once; extras ignored C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_iniz.obj 1 1 CSF-102RBs-ICC-x64
Warning 25 warning LNK4042: object specified more than once; extras ignored C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_iniz_IO.obj 1 1 CSF-102RBs-ICC-x64
Warning 26 warning LNK4042: object specified more than once; extras ignored C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_usage.obj 1 1 CSF-102RBs-ICC-x64
I've attached the very ComStock source files (and edited) I've worked with that is giving me errors/warnings. I took out the "egtb" folder as that was 1.20MB in size and wouldn't be able to upload it here.
I think these are all in Gaviota (that is, the egtb folder). When I got it to compile, I simply chucked the Gaviota usage (this involved mucking around in search.cpp a bit, and then excluding all these files from the Project).
Actually I had excluded the egtb folder. To make sure, I just made another recompile attempt and still got the 13 errors and 26 warnings. I do notice that the ComStock source has the egtb.h, egtb.cpp, endgame.cpp and endgame.h.
I'm guessing these might be the culprit since I had excluded the egtb folders containing the GTBs.
the ComStock source has the egtb.h, egtb.cpp, endgame.cpp and endgame.h.
My understanding is that egtb.cpp (and its header file) is from Peter C for GTB access, whilst endgame.cpp is standard to Stockfish. I deleted egtb.cpp, and this left four unresolved symbols if I recall correctly. I then got rid of the attempt_probe_egtb stuff in search.cpp, and also the init_egtb and close_egtb in some file that I forget. In other words, I kept on deleting functionality until it worked (as I say, I was in a hurry and just fooling around to refresh my memory as to how compiling under Windows worked)... Of course, it would be better to try to get it to work with GTBs still present. [Under Linux, it all "just works", with both GTBs and RobboBases].
I give up on ComStock. It just won't compile under Windows. I was hoping I could compile one for the public. It's really sad and a lost to the chess community because many Window OS owners won't get to see/enjoy the hard works of the ComStock programmers.
Anyway, thanks BB+ and Kingliveson for all the assistance.