I do not understand how it compiles for you. I have the same compile problems I had last time due to missing header files.
dannc@DESKTOP-426Q3JG MINGW64 /i/project/dcorbit/ocgdb-main/src
$ make
g++ -std=c++17 -DNDEBUG -O3 -c *.cpp
In file included from board/base.h:20,
from board/chess.h:15,
from builder.cpp:21:
board/chesstypes.h: In member function 'void ocgdb::Piece::set(int, ocgdb::Side)':
board/chesstypes.h:81:9: error: 'assert' was not declared in this scope
81 | assert(isValid());
| ^~
board/chesstypes.h:21:1: note: 'assert' is defined in header ''; did you forget to '#include '?
20 | #include "funcs.h"
+++ |+#include
21 |
In file included from board/chess.h:15,
from builder.cpp:21:
board/base.h: At global scope:
board/base.h:41:18: error: 'mutex' in namespace 'std' does not name a type
41 | mutable std::mutex dataMutex;
| ^~~~~
board/base.h:21:1: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
20 | #include "chesstypes.h"
+++ |+#include
21 |
board/base.h: In member function 'void ocgdb::BoardData::histListClear()':
board/base.h:54:14: error: 'lock_guard' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:54:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:54:30: error: 'mutex' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:54:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:54:44: error: 'dataMutex' was not declared in this scope
54 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:54:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
54 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'std::vector ocgdb::BoardData::getHistList() const':
board/base.h:59:14: error: 'lock_guard' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:59:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:59:30: error: 'mutex' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:59:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:59:44: error: 'dataMutex' was not declared in this scope
59 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:59:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
59 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'void ocgdb::BoardData::updateLastHist(const ocgdb::Hist&)':
board/base.h:71:14: error: 'lock_guard' is not a member of 'std'
71 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:71:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:71:30: error: 'mutex' is not a member of 'std'
71 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:71:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:71:44: error: 'dataMutex' was not declared in this scope
71 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:71:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
71 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'ocgdb::Hist ocgdb::BoardData::getHistAt(int) const':
board/base.h:86:14: error: 'lock_guard' is not a member of 'std'
86 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:86:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:86:30: error: 'mutex' is not a member of 'std'
86 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:86:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:86:44: error: 'dataMutex' was not declared in this scope
86 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:86:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
86 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'ocgdb::MoveFull ocgdb::BoardData::getMoveAt(int) const':
board/base.h:101:14: error: 'lock_guard' is not a member of 'std'
101 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:101:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:101:30: error: 'mutex' is not a member of 'std'
101 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:101:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:101:44: error: 'dataMutex' was not declared in this scope
101 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:101:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
101 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'int ocgdb::BoardData::hist_countInfo() const':
board/base.h:110:14: error: 'lock_guard' is not a member of 'std'
110 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:110:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:110:30: error: 'mutex' is not a member of 'std'
110 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:110:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:110:44: error: 'dataMutex' was not declared in this scope
110 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:110:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
110 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'bool ocgdb::BoardData::hist_removeAllInfo(bool, bool)':
board/base.h:119:14: error: 'lock_guard' is not a member of 'std'
119 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:119:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:119:30: error: 'mutex' is not a member of 'std'
119 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:119:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:119:44: error: 'dataMutex' was not declared in this scope
119 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:119:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
119 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'ocgdb::Piece ocgdb::BoardData::getPiece(int) const':
board/base.h:138:14: error: 'lock_guard' is not a member of 'std'
138 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:138:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:138:30: error: 'mutex' is not a member of 'std'
138 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:138:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:138:44: error: 'dataMutex' was not declared in this scope
138 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:138:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
138 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'ocgdb::Piece ocgdb::BoardData::_getPiece(int) const':
board/base.h:143:9: error: 'assert' was not declared in this scope
143 | assert(isPositionValid(pos));
| ^~
board/base.h:21:1: note: 'assert' is defined in header ''; did you forget to '#include '?
20 | #include "chesstypes.h"
+++ |+#include
21 |
board/base.h: In member function 'bool ocgdb::BoardData::isEmpty(int) const':
board/base.h:148:14: error: 'lock_guard' is not a member of 'std'
148 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:148:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:148:30: error: 'mutex' is not a member of 'std'
148 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:148:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:148:44: error: 'dataMutex' was not declared in this scope
148 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:148:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
148 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'bool ocgdb::BoardData::_isEmpty(int) const':
board/base.h:152:9: error: 'assert' was not declared in this scope
152 | assert(isPositionValid(pos));
| ^~
board/base.h:152:9: note: 'assert' is defined in header ''; did you forget to '#include '?
board/base.h: In member function 'bool ocgdb::BoardData::isPiece(int, int, ocgdb::Side) const':
board/base.h:157:14: error: 'lock_guard' is not a member of 'std'
157 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:157:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:157:30: error: 'mutex' is not a member of 'std'
157 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:157:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:157:44: error: 'dataMutex' was not declared in this scope
157 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:157:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
157 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'bool ocgdb::BoardData::_isPiece(int, int, ocgdb::Side) const':
board/base.h:162:9: error: 'assert' was not declared in this scope
162 | assert(isPositionValid(pos));
| ^~
board/base.h:162:9: note: 'assert' is defined in header ''; did you forget to '#include '?
board/base.h: In member function 'virtual void ocgdb::BoardData::clone(const ocgdb::BoardData)':
board/base.h:172:14: error: 'lock_guard' is not a member of 'std'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~~
board/base.h:172:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:172:30: error: 'mutex' is not a member of 'std'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~
board/base.h:172:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:172:53: error: 'const class ocgdb::BoardData' has no member named 'dataMutex'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~
board/base.h:172:37: error: 'dolocko' was not declared in this scope; did you mean 'clock'?
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~
| clock
board/base.h:173:14: error: 'lock_guard' is not a member of 'std'
173 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:173:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:173:30: error: 'mutex' is not a member of 'std'
173 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:173:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:173:44: error: 'dataMutex' was not declared in this scope
173 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:173:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
173 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'virtual void ocgdb::BoardData::_clone(const ocgdb::BoardData)':
board/base.h:179:9: error: 'assert' was not declared in this scope
179 | assert(pieces.size() == oboard->pieces.size());
| ^~
board/base.h:179:9: note: 'assert' is defined in header ''; did you forget to '#include '?
board/base.h: In member function 'void ocgdb::BoardCore::setPiece(int, ocgdb::Piece)':
board/base.h:236:14: error: 'lock_guard' is not a member of 'std'
236 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:236:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:236:30: error: 'mutex' is not a member of 'std'
236 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:236:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:236:44: error: 'dataMutex' was not declared in this scope
236 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:236:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
236 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'void ocgdb::BoardCore::_setPiece(int, ocgdb::Piece)':
board/base.h:241:9: error: 'assert' was not declared in this scope
241 | assert(isPositionValid(pos));
| ^~
board/base.h:241:9: note: 'assert' is defined in header ''; did you forget to '#include '?
board/base.h: In member function 'void ocgdb::BoardCore::setEmpty(int)':
board/base.h:246:14: error: 'lock_guard' is not a member of 'std'
246 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:246:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:246:30: error: 'mutex' is not a member of 'std'
246 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:246:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:246:44: error: 'dataMutex' was not declared in this scope
246 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:246:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
246 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'void ocgdb::BoardCore::_setEmpty(int)':
board/base.h:251:9: error: 'assert' was not declared in this scope
251 | assert(isPositionValid(pos));
| ^~
board/base.h:251:9: note: 'assert' is defined in header ''; did you forget to '#include '?
In file included from builder.cpp:21:
board/chess.h: In member function 'virtual std::string ocgdb::ChessBoard::toString_traditional(const ocgdb::MoveFull&, ocgdb::Notation) const':
board/chess.h:78:9: error: 'assert' was not declared in this scope
78 | assert(false);
| ^~
board/chess.h:16:1: note: 'assert' is defined in header ''; did you forget to '#include '?
15 | #include "base.h"
+++ |+#include
16 |
board/chess.h: In member function 'virtual int ocgdb::ChessBoard::flip(int, ocgdb::FlipMode) const':
board/chess.h:91:9: error: 'assert' was not declared in this scope
91 | assert(0);
| ^~
board/chess.h:91:9: note: 'assert' is defined in header ''; did you forget to '#include '?
In file included from builder.h:19,
from main.cpp:12:
board/base.h:41:18: error: 'mutex' in namespace 'std' does not name a type
41 | mutable std::mutex dataMutex;
| ^~~~~
board/base.h:21:1: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
20 | #include "chesstypes.h"
+++ |+#include
21 |
board/base.h: In member function 'void ocgdb::BoardData::histListClear()':
board/base.h:54:14: error: 'lock_guard' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:54:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:54:30: error: 'mutex' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:54:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:54:44: error: 'dataMutex' was not declared in this scope
54 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:54:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
54 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'std::vector ocgdb::BoardData::getHistList() const':
board/base.h:59:14: error: 'lock_guard' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:59:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:59:30: error: 'mutex' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:59:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:59:44: error: 'dataMutex' was not declared in this scope
59 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:59:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
59 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'void ocgdb::BoardData::updateLastHist(const ocgdb::Hist&)':
board/base.h:71:14: error: 'lock_guard' is not a member of 'std'
71 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:71:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:71:30: error: 'mutex' is not a member of 'std'
71 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:71:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:71:44: error: 'dataMutex' was not declared in this scope
71 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:71:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
71 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'ocgdb::Hist ocgdb::BoardData::getHistAt(int) const':
board/base.h:86:14: error: 'lock_guard' is not a member of 'std'
86 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:86:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:86:30: error: 'mutex' is not a member of 'std'
86 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:86:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:86:44: error: 'dataMutex' was not declared in this scope
86 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:86:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
86 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'ocgdb::MoveFull ocgdb::BoardData::getMoveAt(int) const':
board/base.h:101:14: error: 'lock_guard' is not a member of 'std'
101 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:101:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:101:30: error: 'mutex' is not a member of 'std'
101 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:101:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:101:44: error: 'dataMutex' was not declared in this scope
101 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:101:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
101 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'int ocgdb::BoardData::hist_countInfo() const':
board/base.h:110:14: error: 'lock_guard' is not a member of 'std'
110 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:110:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:110:30: error: 'mutex' is not a member of 'std'
110 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:110:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:110:44: error: 'dataMutex' was not declared in this scope
110 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:110:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
110 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'bool ocgdb::BoardData::hist_removeAllInfo(bool, bool)':
board/base.h:119:14: error: 'lock_guard' is not a member of 'std'
119 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:119:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:119:30: error: 'mutex' is not a member of 'std'
119 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:119:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:119:44: error: 'dataMutex' was not declared in this scope
119 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:119:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
119 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'ocgdb::Piece ocgdb::BoardData::getPiece(int) const':
board/base.h:138:14: error: 'lock_guard' is not a member of 'std'
138 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:138:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:138:30: error: 'mutex' is not a member of 'std'
138 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:138:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:138:44: error: 'dataMutex' was not declared in this scope
138 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:138:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
138 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'bool ocgdb::BoardData::isEmpty(int) const':
board/base.h:148:14: error: 'lock_guard' is not a member of 'std'
148 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:148:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:148:30: error: 'mutex' is not a member of 'std'
148 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:148:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:148:44: error: 'dataMutex' was not declared in this scope
148 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:148:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
148 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'bool ocgdb::BoardData::isPiece(int, int, ocgdb::Side) const':
board/base.h:157:14: error: 'lock_guard' is not a member of 'std'
157 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:157:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:157:30: error: 'mutex' is not a member of 'std'
157 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:157:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:157:44: error: 'dataMutex' was not declared in this scope
157 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:157:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
157 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'virtual void ocgdb::BoardData::clone(const ocgdb::BoardData*)':
board/base.h:172:14: error: 'lock_guard' is not a member of 'std'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~~
board/base.h:172:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:172:30: error: 'mutex' is not a member of 'std'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~
board/base.h:172:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:172:53: error: 'const class ocgdb::BoardData' has no member named 'dataMutex'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~
board/base.h:172:37: error: 'dolocko' was not declared in this scope; did you mean 'clock'?
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~
| clock
board/base.h:173:14: error: 'lock_guard' is not a member of 'std'
173 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:173:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:173:30: error: 'mutex' is not a member of 'std'
173 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:173:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:173:44: error: 'dataMutex' was not declared in this scope
173 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:173:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
173 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'void ocgdb::BoardCore::setPiece(int, ocgdb::Piece)':
board/base.h:236:14: error: 'lock_guard' is not a member of 'std'
236 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:236:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:236:30: error: 'mutex' is not a member of 'std'
236 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:236:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:236:44: error: 'dataMutex' was not declared in this scope
236 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:236:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
236 | std::lock_guard dolock(dataMutex);
| ^~
| clock
board/base.h: In member function 'void ocgdb::BoardCore::setEmpty(int)':
board/base.h:246:14: error: 'lock_guard' is not a member of 'std'
246 | std::lock_guard dolock(dataMutex);
| ^~~~~~
board/base.h:246:14: note: 'std::lock_guard' is defined in header ''; did you forget to '#include '?
board/base.h:246:30: error: 'mutex' is not a member of 'std'
246 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:246:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:246:44: error: 'dataMutex' was not declared in this scope
246 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:246:37: error: 'dolock' was not declared in this scope; did you mean 'clock'?
246 | std::lock_guard dolock(dataMutex);
| ^~
| clock
make: *** [Makefile:10: all] Error 1
I do not understand how it compiles for you. I have the same compile problems I had last time due to missing header files. dannc@DESKTOP-426Q3JG MINGW64 /i/project/dcorbit/ocgdb-main/src $ make g++ -std=c++17 -DNDEBUG -O3 -c *.cpp In file included from board/base.h:20, from board/chess.h:15, from builder.cpp:21: board/chesstypes.h: In member function 'void ocgdb::Piece::set(int, ocgdb::Side)': board/chesstypes.h:81:9: error: 'assert' was not declared in this scope 81 | assert(isValid()); | ^'; did you forget to '#include '?
20 | #include "funcs.h"
+++ |+#include
21 |
In file included from board/chess.h:15,
from builder.cpp:21:
board/base.h: At global scope:
board/base.h:41:18: error: 'mutex' in namespace 'std' does not name a type
41 | mutable std::mutex dataMutex;
| ^~~~~
board/base.h:21:1: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
20 | #include "chesstypes.h"
+++ |+#include
21 |
board/base.h: In member function 'void ocgdb::BoardData::histListClear()':
board/base.h:54:14: error: 'lock_guard' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:54:30: error: 'mutex' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:54:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:54:44: error: 'dataMutex' was not declared in this scope
54 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ ocgdb::BoardData::getHistList() const':
board/base.h:59:14: error: 'lock_guard' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:59:30: error: 'mutex' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:59:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:59:44: error: 'dataMutex' was not declared in this scope
59 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:71:30: error: 'mutex' is not a member of 'std'
71 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:71:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:71:44: error: 'dataMutex' was not declared in this scope
71 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:86:30: error: 'mutex' is not a member of 'std'
86 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:86:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:86:44: error: 'dataMutex' was not declared in this scope
86 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:101:30: error: 'mutex' is not a member of 'std'
101 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:101:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:101:44: error: 'dataMutex' was not declared in this scope
101 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:110:30: error: 'mutex' is not a member of 'std'
110 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:110:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:110:44: error: 'dataMutex' was not declared in this scope
110 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:119:30: error: 'mutex' is not a member of 'std'
119 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:119:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:119:44: error: 'dataMutex' was not declared in this scope
119 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:138:30: error: 'mutex' is not a member of 'std'
138 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:138:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:138:44: error: 'dataMutex' was not declared in this scope
138 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
20 | #include "chesstypes.h"
+++ |+#include
21 |
board/base.h: In member function 'bool ocgdb::BoardData::isEmpty(int) const':
board/base.h:148:14: error: 'lock_guard' is not a member of 'std'
148 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:148:30: error: 'mutex' is not a member of 'std'
148 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:148:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:148:44: error: 'dataMutex' was not declared in this scope
148 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h: In member function 'bool ocgdb::BoardData::isPiece(int, int, ocgdb::Side) const':
board/base.h:157:14: error: 'lock_guard' is not a member of 'std'
157 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:157:30: error: 'mutex' is not a member of 'std'
157 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:157:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:157:44: error: 'dataMutex' was not declared in this scope
157 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h: In member function 'virtual void ocgdb::BoardData::clone(const ocgdb::BoardData)':
board/base.h:172:14: error: 'lock_guard' is not a member of 'std'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^'; did you forget to '#include '?
board/base.h:172:30: error: 'mutex' is not a member of 'std'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~
board/base.h:172:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:172:53: error: 'const class ocgdb::BoardData' has no member named 'dataMutex'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^ dolocko(oboard->dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:173:30: error: 'mutex' is not a member of 'std'
173 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:173:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:173:44: error: 'dataMutex' was not declared in this scope
173 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ )':
board/base.h:179:9: error: 'assert' was not declared in this scope
179 | assert(pieces.size() == oboard->pieces.size());
| ^'; did you forget to '#include '?
board/base.h: In member function 'void ocgdb::BoardCore::setPiece(int, ocgdb::Piece)':
board/base.h:236:14: error: 'lock_guard' is not a member of 'std'
236 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:236:30: error: 'mutex' is not a member of 'std'
236 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:236:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:236:44: error: 'dataMutex' was not declared in this scope
236 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h: In member function 'void ocgdb::BoardCore::setEmpty(int)':
board/base.h:246:14: error: 'lock_guard' is not a member of 'std'
246 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:246:30: error: 'mutex' is not a member of 'std'
246 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:246:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:246:44: error: 'dataMutex' was not declared in this scope
246 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
In file included from builder.cpp:21:
board/chess.h: In member function 'virtual std::string ocgdb::ChessBoard::toString_traditional(const ocgdb::MoveFull&, ocgdb::Notation) const':
board/chess.h:78:9: error: 'assert' was not declared in this scope
78 | assert(false);
| ^'; did you forget to '#include '?
15 | #include "base.h"
+++ |+#include
16 |
board/chess.h: In member function 'virtual int ocgdb::ChessBoard::flip(int, ocgdb::FlipMode) const':
board/chess.h:91:9: error: 'assert' was not declared in this scope
91 | assert(0);
| ^'; did you forget to '#include '?
In file included from builder.h:19,
from main.cpp:12:
board/base.h:41:18: error: 'mutex' in namespace 'std' does not name a type
41 | mutable std::mutex dataMutex;
| ^~~~~
board/base.h:21:1: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
20 | #include "chesstypes.h"
+++ |+#include
21 |
board/base.h: In member function 'void ocgdb::BoardData::histListClear()':
board/base.h:54:14: error: 'lock_guard' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:54:30: error: 'mutex' is not a member of 'std'
54 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:54:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:54:44: error: 'dataMutex' was not declared in this scope
54 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ ocgdb::BoardData::getHistList() const':
board/base.h:59:14: error: 'lock_guard' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:59:30: error: 'mutex' is not a member of 'std'
59 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:59:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:59:44: error: 'dataMutex' was not declared in this scope
59 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:71:30: error: 'mutex' is not a member of 'std'
71 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:71:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:71:44: error: 'dataMutex' was not declared in this scope
71 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:86:30: error: 'mutex' is not a member of 'std'
86 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:86:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:86:44: error: 'dataMutex' was not declared in this scope
86 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:101:30: error: 'mutex' is not a member of 'std'
101 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:101:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:101:44: error: 'dataMutex' was not declared in this scope
101 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:110:30: error: 'mutex' is not a member of 'std'
110 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:110:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:110:44: error: 'dataMutex' was not declared in this scope
110 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:119:30: error: 'mutex' is not a member of 'std'
119 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:119:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:119:44: error: 'dataMutex' was not declared in this scope
119 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:138:30: error: 'mutex' is not a member of 'std'
138 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:138:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:138:44: error: 'dataMutex' was not declared in this scope
138 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:148:30: error: 'mutex' is not a member of 'std'
148 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:148:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:148:44: error: 'dataMutex' was not declared in this scope
148 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:157:30: error: 'mutex' is not a member of 'std'
157 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:157:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:157:44: error: 'dataMutex' was not declared in this scope
157 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolocko(oboard->dataMutex);
| ^'; did you forget to '#include '?
board/base.h:172:30: error: 'mutex' is not a member of 'std'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^~~~~
board/base.h:172:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:172:53: error: 'const class ocgdb::BoardData' has no member named 'dataMutex'
172 | std::lock_guard dolocko(oboard->dataMutex);
| ^ dolocko(oboard->dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:173:30: error: 'mutex' is not a member of 'std'
173 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:173:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:173:44: error: 'dataMutex' was not declared in this scope
173 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:236:30: error: 'mutex' is not a member of 'std'
236 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:236:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:236:44: error: 'dataMutex' was not declared in this scope
236 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^ dolock(dataMutex);
| ^'; did you forget to '#include '?
board/base.h:246:30: error: 'mutex' is not a member of 'std'
246 | std::lock_guard dolock(dataMutex);
| ^~~~~
board/base.h:246:30: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
board/base.h:246:44: error: 'dataMutex' was not declared in this scope
246 | std::lock_guard dolock(dataMutex);
| ^ dolock(dataMutex);
| ^
~board/chesstypes.h:21:1: note: 'assert' is defined in header '~~~~~ board/base.h:54:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:54:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 54 | std::lock_guard~| clock board/base.h: In member function 'std::vector~~~~~ board/base.h:59:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:59:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 59 | std::lock_guard~| clock board/base.h: In member function 'void ocgdb::BoardData::updateLastHist(const ocgdb::Hist&)': board/base.h:71:14: error: 'lock_guard' is not a member of 'std' 71 | std::lock_guard~~~~~ board/base.h:71:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:71:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 71 | std::lock_guard~| clock board/base.h: In member function 'ocgdb::Hist ocgdb::BoardData::getHistAt(int) const': board/base.h:86:14: error: 'lock_guard' is not a member of 'std' 86 | std::lock_guard~~~~~ board/base.h:86:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:86:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 86 | std::lock_guard~| clock board/base.h: In member function 'ocgdb::MoveFull ocgdb::BoardData::getMoveAt(int) const': board/base.h:101:14: error: 'lock_guard' is not a member of 'std' 101 | std::lock_guard~~~~~ board/base.h:101:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:101:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 101 | std::lock_guard~| clock board/base.h: In member function 'int ocgdb::BoardData::hist_countInfo() const': board/base.h:110:14: error: 'lock_guard' is not a member of 'std' 110 | std::lock_guard~~~~~ board/base.h:110:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:110:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 110 | std::lock_guard~| clock board/base.h: In member function 'bool ocgdb::BoardData::hist_removeAllInfo(bool, bool)': board/base.h:119:14: error: 'lock_guard' is not a member of 'std' 119 | std::lock_guard~~~~~ board/base.h:119:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:119:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 119 | std::lock_guard~| clock board/base.h: In member function 'ocgdb::Piece ocgdb::BoardData::getPiece(int) const': board/base.h:138:14: error: 'lock_guard' is not a member of 'std' 138 | std::lock_guard~~~~~ board/base.h:138:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:138:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 138 | std::lock_guard~| clock board/base.h: In member function 'ocgdb::Piece ocgdb::BoardData::_getPiece(int) const': board/base.h:143:9: error: 'assert' was not declared in this scope 143 | assert(isPositionValid(pos)); | ^~board/base.h:21:1: note: 'assert' is defined in header '~~~~~ board/base.h:148:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:148:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 148 | std::lock_guard~| clock board/base.h: In member function 'bool ocgdb::BoardData::_isEmpty(int) const': board/base.h:152:9: error: 'assert' was not declared in this scope 152 | assert(isPositionValid(pos)); | ^~board/base.h:152:9: note: 'assert' is defined in header '~~~~~ board/base.h:157:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:157:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 157 | std::lock_guard~| clock board/base.h: In member function 'bool ocgdb::BoardData::_isPiece(int, int, ocgdb::Side) const': board/base.h:162:9: error: 'assert' was not declared in this scope 162 | assert(isPositionValid(pos)); | ^~board/base.h:162:9: note: 'assert' is defined in header '~~~~~ board/base.h:172:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:172:37: error: 'dolocko' was not declared in this scope; did you mean 'clock'? 172 | std::lock_guard~~ | clock board/base.h:173:14: error: 'lock_guard' is not a member of 'std' 173 | std::lock_guard~~~~~ board/base.h:173:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:173:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 173 | std::lock_guard~| clock board/base.h: In member function 'virtual void ocgdb::BoardData::_clone(const ocgdb::BoardData~board/base.h:179:9: note: 'assert' is defined in header '~~~~~ board/base.h:236:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:236:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 236 | std::lock_guard~| clock board/base.h: In member function 'void ocgdb::BoardCore::_setPiece(int, ocgdb::Piece)': board/base.h:241:9: error: 'assert' was not declared in this scope 241 | assert(isPositionValid(pos)); | ^~board/base.h:241:9: note: 'assert' is defined in header '~~~~~ board/base.h:246:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:246:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 246 | std::lock_guard~| clock board/base.h: In member function 'void ocgdb::BoardCore::_setEmpty(int)': board/base.h:251:9: error: 'assert' was not declared in this scope 251 | assert(isPositionValid(pos)); | ^~board/base.h:251:9: note: 'assert' is defined in header '~board/chess.h:16:1: note: 'assert' is defined in header '~board/chess.h:91:9: note: 'assert' is defined in header '~~~~~ board/base.h:54:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:54:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 54 | std::lock_guard~| clock board/base.h: In member function 'std::vector~~~~~ board/base.h:59:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:59:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 59 | std::lock_guard~| clock board/base.h: In member function 'void ocgdb::BoardData::updateLastHist(const ocgdb::Hist&)': board/base.h:71:14: error: 'lock_guard' is not a member of 'std' 71 | std::lock_guard~~~~~ board/base.h:71:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:71:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 71 | std::lock_guard~| clock board/base.h: In member function 'ocgdb::Hist ocgdb::BoardData::getHistAt(int) const': board/base.h:86:14: error: 'lock_guard' is not a member of 'std' 86 | std::lock_guard~~~~~ board/base.h:86:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:86:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 86 | std::lock_guard~| clock board/base.h: In member function 'ocgdb::MoveFull ocgdb::BoardData::getMoveAt(int) const': board/base.h:101:14: error: 'lock_guard' is not a member of 'std' 101 | std::lock_guard~~~~~ board/base.h:101:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:101:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 101 | std::lock_guard~| clock board/base.h: In member function 'int ocgdb::BoardData::hist_countInfo() const': board/base.h:110:14: error: 'lock_guard' is not a member of 'std' 110 | std::lock_guard~~~~~ board/base.h:110:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:110:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 110 | std::lock_guard~| clock board/base.h: In member function 'bool ocgdb::BoardData::hist_removeAllInfo(bool, bool)': board/base.h:119:14: error: 'lock_guard' is not a member of 'std' 119 | std::lock_guard~~~~~ board/base.h:119:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:119:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 119 | std::lock_guard~| clock board/base.h: In member function 'ocgdb::Piece ocgdb::BoardData::getPiece(int) const': board/base.h:138:14: error: 'lock_guard' is not a member of 'std' 138 | std::lock_guard~~~~~ board/base.h:138:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:138:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 138 | std::lock_guard~| clock board/base.h: In member function 'bool ocgdb::BoardData::isEmpty(int) const': board/base.h:148:14: error: 'lock_guard' is not a member of 'std' 148 | std::lock_guard~~~~~ board/base.h:148:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:148:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 148 | std::lock_guard~| clock board/base.h: In member function 'bool ocgdb::BoardData::isPiece(int, int, ocgdb::Side) const': board/base.h:157:14: error: 'lock_guard' is not a member of 'std' 157 | std::lock_guard~~~~~ board/base.h:157:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:157:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 157 | std::lock_guard~| clock board/base.h: In member function 'virtual void ocgdb::BoardData::clone(const ocgdb::BoardData*)': board/base.h:172:14: error: 'lock_guard' is not a member of 'std' 172 | std::lock_guard~~~~~ board/base.h:172:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:172:37: error: 'dolocko' was not declared in this scope; did you mean 'clock'? 172 | std::lock_guard~~ | clock board/base.h:173:14: error: 'lock_guard' is not a member of 'std' 173 | std::lock_guard~~~~~ board/base.h:173:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:173:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 173 | std::lock_guard~| clock board/base.h: In member function 'void ocgdb::BoardCore::setPiece(int, ocgdb::Piece)': board/base.h:236:14: error: 'lock_guard' is not a member of 'std' 236 | std::lock_guard~~~~~ board/base.h:236:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:236:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 236 | std::lock_guard~| clock board/base.h: In member function 'void ocgdb::BoardCore::setEmpty(int)': board/base.h:246:14: error: 'lock_guard' is not a member of 'std' 246 | std::lock_guard~~~~~ board/base.h:246:14: note: 'std::lock_guard' is defined in header '~~~~ board/base.h:246:37: error: 'dolock' was not declared in this scope; did you mean 'clock'? 246 | std::lock_guard~| clock make: *** [Makefile:10: all] Error 1