BB+, Kingliveson
Thank you both for the assistance. I applied the #define MEMALIGN(a, b, c) a = (uint64_t*)_aligned_malloc (c, b) that should be compatible with C++ but still got this error:
Code: Select all
1>------ Build started: Project: ComStockfish-102RBs-ICC-x64, Configuration: Release x64 ------
1> benchmark.cpp
1> bitbase.cpp
1> bitboard.cpp
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> RobboTotalGlue.cpp
1> RobboTripleGlue.cpp
1>..\..\RobboTripleGlue.cpp(177): warning #47: incompatible redefinition of macro "MEMALIGN" (declared at line 18 of "..\..\RobboTripleCode/IH-win-linux.h")
1> #define MEMALIGN(a, b, c) a = (uint64_t*) _aligned_malloc (c, b)
1> ^
1>
1> san.cpp
1> search.cpp
1> timeman.cpp
1> tt.cpp
1> uci.cpp
1> ucioption.cpp
1> RobboTotal_iniz.c
1>..\..\RobboTotalCode\RobboTotal_iniz.c(7): error : expected an identifier
1> boolean REGISTERED = FALSE;
1> ^
1>
1>..\..\RobboTotalCode\RobboTotal_iniz.c(13): warning #266: function "InitTotalBaseUtility" declared implicitly
1> InitTotalBaseUtility ();
1> ^
1>
1>..\..\RobboTotalCode\RobboTotal_iniz.c(34): warning #266: function "DeRegisterRobboTotalBases" declared implicitly
1> DeRegisterRobboTotalBases ();
1> ^
1>
1>..\..\RobboTotalCode\RobboTotal_iniz.c(61): error : expression must be a modifiable lvalue
1> REGISTERED = TRUE;
1> ^
1>
1>..\..\RobboTotalCode\RobboTotal_iniz.c(86): error : expression must be a modifiable lvalue
1> REGISTERED = FALSE;
1> ^
1>
1> Robbo_cache.c
1>..\..\RobboTotalCode\Robbo_cache.c(22): warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)
1> free (CACHE_INFO[i]);
1> ^
1>
1> Robbo_decomp.c
1> Robbo_iniz.c
1> Robbo_iniz_IO.c
1> Robbo_usage.c
1>..\..\RobboTotalCode\Robbo_usage.c(5): warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalCode\RobboTotalBase.h")
1> #define LANCpez(u, x) (x) = lanc_pedone[u][x]
1> ^
1>
1>..\..\RobboTotalCode\Robbo_usage.c(6): warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalCode\RobboTotalBase.h")
1> #define LANCnor(u, x) (x) = lanc_norm[u][x]
1> ^
1>
1> RobboTriple.c
1>..\..\RobboTripleCode\RobboTriple.c(241): warning #266: function "InitInitTripleBaseCache" declared implicitly
1> InitInitTripleBaseCache (1);
1> ^
1>
1>..\..\RobboTripleCode\RobboTriple.c(242): warning #266: function "InitTripleHash" declared implicitly
1> InitTripleHash (1);
1> ^
1>
1>..\..\RobboTripleCode\RobboTriple.c(295): warning #266: function "triple_statistica" declared implicitly
1> triple_statistica ();
1> ^
1>
1> RobboTripleDisk.c
1>..\..\RobboTripleCode\RobboTripleDisk.c(24): warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)
1> free (TRIPLE_CACHE_NOTE[i]);
1> ^
1>
1> RobboTripleValue.c
1> RobboTriple_iniz.c
1>..\..\RobboTripleCode\RobboTriple_iniz.c(486): warning #266: function "STAT" declared implicitly
1> if (STAT (NOME_FILE) == -1)
1> ^
1>
1>..\..\RobboTripleCode\RobboTriple_iniz.c(518): warning #266: function "STAT" declared implicitly
1> if (STAT (NOME_FILE) == -1)
1> ^
1>
1>..\..\RobboTripleCode\RobboTriple_iniz.c(624): error : expression must have arithmetic or pointer type
1> if (hFind == INVALID_HANDLE_VALUE || ffd == NULL)
1> ^
1>
1> RobboWeakLoad.c
1>..\..\RobboTripleCode\RobboWeakLoad.c(41): warning #266: function "SubsumeTripleSMP" declared implicitly
1> if (!SubsumeTripleSMP () || PONDERING)
1> ^
1>
1>..\..\RobboTripleCode\RobboWeakLoad.c(44): warning #266: function "OfftoneTripleSMP" declared implicitly
1> OfftoneTripleSMP ();
1> ^
1>
1>..\..\RobboTripleCode\RobboWeakLoad.c(53): warning #266: function "OfftoneTripleSMP" declared implicitly
1> OfftoneTripleSMP ();
1> ^
1>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and I got more errors messages this time:
Code: Select all
Error 2 error : expected an identifier C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\RobboTotal_iniz.c 7 1 ComStockfish-102RBs-ICC-x64
Error 5 error : expression must be a modifiable lvalue C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\RobboTotal_iniz.c 61 1 ComStockfish-102RBs-ICC-x64
Error 6 error : expression must be a modifiable lvalue C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\RobboTotal_iniz.c 86 1 ComStockfish-102RBs-ICC-x64
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
Warning 7 warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers) C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\Robbo_cache.c 22 1 ComStockfish-102RBs-ICC-x64
Warning 13 warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers) C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTripleDisk.c 24 1 ComStockfish-102RBs-ICC-x64
Warning 4 warning #266: function "DeRegisterRobboTotalBases" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\RobboTotal_iniz.c 34 1 ComStockfish-102RBs-ICC-x64
Warning 10 warning #266: function "InitInitTripleBaseCache" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTriple.c 241 1 ComStockfish-102RBs-ICC-x64
Warning 3 warning #266: function "InitTotalBaseUtility" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\RobboTotal_iniz.c 13 1 ComStockfish-102RBs-ICC-x64
Warning 11 warning #266: function "InitTripleHash" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTriple.c 242 1 ComStockfish-102RBs-ICC-x64
Warning 18 warning #266: function "OfftoneTripleSMP" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboWeakLoad.c 44 1 ComStockfish-102RBs-ICC-x64
Warning 19 warning #266: function "OfftoneTripleSMP" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboWeakLoad.c 53 1 ComStockfish-102RBs-ICC-x64
Warning 14 warning #266: function "STAT" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTriple_iniz.c 486 1 ComStockfish-102RBs-ICC-x64
Warning 15 warning #266: function "STAT" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTriple_iniz.c 518 1 ComStockfish-102RBs-ICC-x64
Warning 17 warning #266: function "SubsumeTripleSMP" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboWeakLoad.c 41 1 ComStockfish-102RBs-ICC-x64
Warning 12 warning #266: function "triple_statistica" declared implicitly C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTriple.c 295 1 ComStockfish-102RBs-ICC-x64
Warning 9 warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalCode\RobboTotalBase.h") C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\Robbo_usage.c 6 1 ComStockfish-102RBs-ICC-x64
Warning 8 warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalCode\RobboTotalBase.h") C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\Robbo_usage.c 5 1 ComStockfish-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-Copy\RobboTripleGlue.cpp 177 1 ComStockfish-102RBs-ICC-x64
To BB+: I should point out that I did not delete the first suggestion to add #def WINDOWS at line 175 in the RobboTripleGlue.cpp you suggested earlier. So that when I reapplied the
#define MEMALIGN(a, b, c) a = (uint64_t*)_aligned_malloc (c, b) code, I still got this error.
And one more thing to add regarding compiling ComStock and/or similar engines with sources in different folders;
(1)After the initial Add/Existing items, I attempted to also add the contents of both RobboTotalCode & RobboTripleCode by repeating the process of Add/Existing items (under Solution Exploere). Is this correct?
(2)Or should I use the Add/
New items instead?
(3)Or preferrably, should I copy all files from the RobboTotalCode & RobboTripleCode to the main folder with the ComStocfish source and then do the Add/Existing items all at once?
I ask these because with Tinapa1.01, all the needed source-files were located in one folder and so I didn't have this concern, as in the case of ComStock.
Thanks again for all your patience and time.