cppkafka icon indicating copy to clipboard operation
cppkafka copied to clipboard

Problems with VS2013 not supporting explicitly defaulted and deleted functions

Open Mandy27 opened this issue 8 years ago • 7 comments

I am getting a bunch of errors when building using Microsoft Visual Studio 2013, which is not supported default functions. Would you mind helping me on this? capture

Mandy27 avatar Nov 29 '17 21:11 Mandy27

VS2013's support for C++11 is pretty bad, so it likely won't work. Try updating your compiler version or use gcc/clang.

mfontanini avatar Nov 29 '17 21:11 mfontanini

I had to you VS2013 with C++11 due to some restrictions. I ended up writing definitions for all the default constructors and got everything built. But not sure if everything is working correctly. Should I test it using the provided examples? When I cmake the project it couldn't find the boost.program_options, so it disable examples. What is the path that I should provide so it can point to the boost library correctly? Thank you so much!

Mandy27 avatar Nov 29 '17 22:11 Mandy27

You need to have boost installed and provide the path using -DBOOST_ROOT. In order to run the tests you need to have kafka and zookeeper installed for now, you can see how to set them up following this. Note that the script uses ubuntu so use it only as a guide.

mfontanini avatar Nov 29 '17 22:11 mfontanini

I followed your instructions https://github.com/mfontanini/cppkafka/wiki/Compiling. But the examples still got disabled. I put the BOOST_ROOT and it is still not working.

Mandy27 avatar Nov 29 '17 22:11 Mandy27

capture

Mandy27 avatar Nov 29 '17 22:11 Mandy27

So I just provided the path using -DBoostPROGRAM_OPTIONS_LIBRARY_DEBUG and it doesn't disable the examples anymore the it is still disable tests

Mandy27 avatar Nov 29 '17 22:11 Mandy27

Duplicate of #28 Mandy27 have you solve it .could you show me your code?

zhouxinlzu avatar Jan 19 '18 04:01 zhouxinlzu