错误在mac OS X上编译openbw / bwapi

时间:2017-10-13 07:14:57

标签: c++ macos c++11 cmake

我在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

0 个答案:

没有答案