oliora / ppconsul

C++ client for Consul (http://consul.io)
Boost Software License 1.0
152 stars 57 forks source link

Can't build anymore #53

Closed Ambrase closed 4 years ago

Ambrase commented 4 years ago

I have the following error when i'm trying to build the current master:

[ 6%] Building CXX object src/CMakeFiles/ppconsul.dir/agent.cpp.o

[ 9%] Building CXX object src/CMakeFiles/ppconsul.dir/catalog.cpp.o

[ 11%] Building CXX object src/CMakeFiles/ppconsul.dir/consul.cpp.o

ppconsul/src/consul.cpp:91:13: error: function 'ppconsul::Consul& ppconsul::Consul::operator=(ppconsul::Consul&&)' defaulted on its redeclaration with an exception-specification that differs from the implicit exception-specification '' Consul& Consul::operator= (Consul &&op) PPCONSUL_NOEXCEPT = default; ^~ make[2]: [src/CMakeFiles/ppconsul.dir/build.make:89: src/CMakeFiles/ppconsul.dir/consul.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:146: src/CMakeFiles/ppconsul.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC) Boost 1.73

oliora commented 4 years ago

This is caused by using old ABI, i.e. compiling with CXX="g++-7 -D_GLIBCXX_USE_CXX11_ABI=0".

oliora commented 4 years ago

I've pushed the fix. Please verify and reopen the issue if you still have problem.