我在OS X上编译了openbw / bwapi的ExampleAIMoudle,我用它构建了它:
cmake CMakeLists.txt
make
我收到了错误:
bwapi/bwapi/ExampleAIModule/../include/BWAPI/Position.h:378:9: warning:
in-class initialization of non-static data
member is a C++11 extension
[-Wc++11-extensions]
T x = T{}, y = T{};
^
bwapi/bwapi/ExampleAIModule/../include/BWAPI/Position.h:378:18: warning:
in-class initialization of non-static data
member is a C++11 extension
[-Wc++11-extensions]
T x = T{}, y = T{};
^
bwapi/bwapi/ExampleAIModule/../include/BWAPI/Position.h:378:12: error:
expected '(' for function-style cast or type
construction
T x = T{}, y = T{};
~^
bwapi/bwapi/ExampleAIModule/../include/BWAPI/Position.h:378:21: error:
expected '(' for function-style cast or type
construction
T x = T{}, y = T{};
~^
bwapi/bwapi/ExampleAIModule/../include/BWAPI/Position.h:94:19: error:
no member named 'tie' in namespace 'std'; did
you mean 'time'?
return std::tie(this->x, this->y) == st...
~~~~~^~~
time
您可以找到代码here