The Wayback Machine - https://web.archive.org/web/20210112002844/https://github.com/cpp-netlib/cpp-netlib/issues/877
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 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 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

@tobegit3hub tobegit3hub commented Apr 20, 2020

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 [email protected]: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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.