GeezerVison is showing github.com — Error Compiling cpp-netlib · Issue #618 · cpp-netlib/cpp-netlib
Error Compiling cpp-netlib #618DescriptionHi,
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? Activityaugustjd commented on Mar 26, 2016 Just compiled against boost 1.60, so that's not your problem. luciantodor commented on Mar 26, 2016 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. augustjd commented on Mar 26, 2016 The same. 0.11.2-final.
On Mar 26, 2016 9:42 AM, "Lucian Todor" [email protected] 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
Bardo91 commented on Mar 27, 2016 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? deanberris commented on Mar 29, 2016 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
Wuodan commented on May 23, 2018 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. Reacted by Hannah Schultz
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|