alecthomas / entityx

EntityX - A fast, type-safe C++ Entity-Component system
MIT License
2.21k stars 295 forks source link

Error when building with CMake #217

Closed MarconatoB closed 6 years ago

MarconatoB commented 6 years ago

Using macOS High Sierra 10.13.6 Following the Installation guide in README.md, I get the following error when building entityx with the command "make", after typing "cmake" (No flags used).

In file included from /Users/username/entityx-1.1.2/entityx/Event_test.cc:15: /Users/username/entityx-1.1.2/entityx/3rdparty/catch.hpp:3517:29: error: '~ArgBinder' has a non-throwing exception specification but can still throw [-Werror,-Wexceptions] throw std::logic_error( "Only one unposition... ^ /Users/username/entityx-1.1.2/entityx/3rdparty/catch.hpp:3823:13: note: in instantiation of member function 'Catch::Clara::CommandLine::ArgBinder::~ArgBinder' requested here cli.bind( &ConfigData::showHelp ) ^ /Users/username/entityx-1.1.2/entityx/3rdparty/catch.hpp:3507:13: note: destructor has a implicit non-throwing exception specification ~ArgBinder() / noexcept(false) / { ^

Any help would be appreciated.

alecthomas commented 6 years ago

Try running cmake with -DENTITYX_BUILD_TESTING=0

MarconatoB commented 6 years ago

Thanks, it worked! But why?

alecthomas commented 6 years ago

Catch is the test framework. It probably needs updating to work with more recent compilers.