Skip to content

Error Compiling cpp-netlib #618

Closed
Closed

Description

@Bardo91

Hi,
I'm trying to compile the library but I got this error (among others similar from the same include folder):

    fatal error: asio/ip/tcp.hpp: No such file or directory
                   #include <asio/ip/tcp.hpp>

I check, and I've boost properly installed and is in the default place. Also I check that I've that file, but it is like the include sentence needs a "boost/" before it. But I think that it is a really obvious thing to be an undetected error. What am I doing wrong? I've Boost 1.60, could that be the reason?

Activity

  1. augustjd commented on Mar 26, 2016

    @augustjd

    Just compiled against boost 1.60, so that's not your problem.

  2. luciantodor commented on Mar 26, 2016

    @luciantodor

    Hi. I have used stable version of cpp-netlib 0.11.2-final and it was ok to compile. Because I intend to test and use a newer version, I'm curious, what version are you using?
    Thanks.

  3. augustjd commented on Mar 26, 2016

    @augustjd

    The same. 0.11.2-final.
    On Mar 26, 2016 9:42 AM, "Lucian Todor" notifications@github.com wrote:

    Hi. I have used stable version of cpp-netlib 0.11.2-final and it was ok
    to compile. Because I intend to test and use a newer version, I'm curious,
    what version are you using?
    Thanks.

    —
    You are receiving this because you commented.
    Reply to this email directly or view it on GitHub

  4. Bardo91 commented on Mar 27, 2016

    @Bardo91
    Author

    Hi, I just cloned the git repository and compiled it from there. So I assume is the latest code. Could it be the reason so?

  5. deanberris commented on Mar 29, 2016

    @deanberris
    Member

    Yes, this is the reason. I don't think we updated the README for building from git yet, so let me fix that soon. In short you're going to need to:

    git submodule init
    git submodule update
    

    Or, if you're cloning from scratch, you might want to recursively deal with the submodules in a single command. Like:

    git clone --recursively https://github.com/cpp-netlib/cpp-netlib
    
  6. self-assigned this
    on Mar 29, 2016
  7. Wuodan commented on May 23, 2018

    @Wuodan

    I had the same error using the release 0.12.0.tar.gz from github.
    No problem with the tar.gz from http://downloads.cpp-netlib.org/.
    fatal error: asio/ip/tcp.hpp: No such file or directory #include <asio/ip/tcp.hpp>

    The tar.gz from github also had a different folder name after unpacking than the one from cpp-netlib.org.

    Release 0.11.1 was not affected by these 2 phenomenas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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