CPP Cucumber build error

95 views
Skip to first unread message

Ishan Vermani

unread,
Sep 9, 2019, 6:05:58 AM9/9/19
to Cukes
Trying to build cucmber cpp, but get the following error (Any help?)

cucumber-cpp/src/drivers/BoostDriver.cpp:53:10: error: 'cucumber::internal::CukeBoostLogInterceptor::log_build_info' hides overloaded virtual function [-Werror,-Woverloaded-virtual]

void log_build_info( std::ostream&) {};

^

/usr/local/include/boost/test/unit_test_log_formatter.hpp:144:25: note: hidden overloaded virtual function 'boost::unit_test::unit_test_log_formatter::log_build_info' declared here: different number of

parameters (2 vs 1)

virtual voidlog_build_info( std::ostream& os, bool log_build_info = true ) = 0;

^

/Users/ishan/my_git/cucumber-cpp/src/drivers/BoostDriver.cpp:122:26: error: allocating an object of abstract class type 'cucumber::internal::CukeBoostLogInterceptor'

logInterceptor = new CukeBoostLogInterceptor;

^

/usr/local/include/boost/test/unit_test_log_formatter.hpp:144:25: note: unimplemented pure virtual method 'log_build_info' in 'CukeBoostLogInterceptor'

virtual voidlog_build_info( std::ostream& os, bool log_build_info = true ) = 0;

^

2 errors generated.

make[2]: *** [src/CMakeFiles/cucumber-cpp.dir/drivers/BoostDriver.cpp.o] Error 1

make[1]: *** [src/CMakeFiles/cucumber-cpp.dir/all] Error 2

make: *** [all] Error 2

Peter

unread,
Dec 19, 2019, 12:00:42 AM12/19/19
to Cukes
Hi

I had the same issue, Cucumber-cpp is not compatible with boost 1_70_0+, the log_build_info definition has been changed, try boost 1_69_0.

Peter
Reply all
Reply to author
Forward
0 new messages