Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with VS2013 not supporting explicitly defaulted and deleted functions #28

Open
Mandy27 opened this issue Nov 29, 2017 · 7 comments

Comments

@Mandy27
Copy link

Mandy27 commented Nov 29, 2017

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

@mfontanini
Copy link
Owner

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

@Mandy27
Copy link
Author

Mandy27 commented Nov 29, 2017

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!

@mfontanini
Copy link
Owner

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.

@Mandy27
Copy link
Author

Mandy27 commented Nov 29, 2017

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
Copy link
Author

Mandy27 commented Nov 29, 2017

capture

@Mandy27
Copy link
Author

Mandy27 commented Nov 29, 2017

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

@zhouxinlzu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants