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

cpp-netlib 0.13 'cxxopts.hpp' file not found #include "cxxopts.hpp" after using submodule init and update #877

Open
belalshehab opened this issue Jul 20, 2019 · 2 comments

Comments

@belalshehab
Copy link

belalshehab commented Jul 20, 2019

Hello, I can't compile the latest stable 0.13 build.
the error is /cpp-netlib/libs/network/example/http_client.cpp:18:10: 'cxxopts.hpp' file not found
#include "cxxopts.hpp" fetal error

Note that I got the source files using git submodule as follows
$ git clone https://github.com/cpp-netlib/cpp-netlib
$ cd cpp-netlib
$ git submodule init
$ git submodule update

any help?

@ECHibiki
Copy link

ECHibiki commented Jul 26, 2019

My fix was either one or the combinations of root privileges and/or cloning off of https://github.com/glynos/cpp-netlib and doing the documented steps.
As such, both sudo make and sudo make test went to completion with no errors

@tobegit3hub
Copy link

You can download the project cxxopts and set in CMakeLists.txt like this. Notice that this project relies on version 1.x but not 2.x.

git clone git@github.com:jarro2783/cxxopts.git
git checkout v1.4.4
vim ./CMakeLists.txt

include_directories(/foo/bar/cxxopts/include/)

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