← 输入框|github.com|刷新
Skip to content

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

Open

Description

@belalshehab

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?

Activity

  1. ECHibiki commented on Jul 26, 2019

    @ECHibiki

    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

  2. tobegit3hub commented on Apr 20, 2020

    @tobegit3hub

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions