cppkafka
cppkafka copied to clipboard
make examples failure
[root@VM-229-225-centos ~/news/ft_local/cppkafka/build]# make examples
[ 63%] Built target cppkafka
[ 68%] Built target consumers-information
[ 73%] Built target producer
[ 76%] Building CXX object examples/CMakeFiles/buffered-producer.dir/buffered_producer_example.cpp.o
In file included from /root/news/ft_local/cppkafka/examples/buffered_producer_example.cpp:4:0:
/root/news/ft_local/cppkafka/examples/../include/cppkafka/utils/buffered_producer.h: In instantiation of ‘cppkafka::BufferedProducer<BufferType, Allocator>::BufferedProducer(cppkafka::Configuration, const Allocator&) [with BufferType = std::basic_string
cppkafka version: the latest verison, maybe 0.4.0
gcc version: 4.8.4 [root@VM-229-225-centos ~/news/ft_local/cppkafka/build]# gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright (C) 2015 Free Software Foundation, Inc.
The code looks fine well formed IMO. I would suggest upgrading your compiler, gcc 4.8.4 was released 6 years ago. That should fix your issue.