Project

General

Profile

Bug #4422

Compilation failure with boost 1.66

Added by Alex Afanasyev about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/22/2017
Due date:
% Done:

0%

Estimated time:

Description

In file included from src/threadsafe-face.cpp:28:
./include/ndn-cpp/transport/async-tcp-transport.hpp:30:42: error: definition of type 'io_service' conflicts with typedef of the same name
namespace boost { namespace asio { class io_service; }}
                                         ^
/usr/local/include/boost/asio/io_service.hpp:27:20: note: 'io_service' declared here
typedef io_context io_service;
                   ^
In file included from src/threadsafe-face.cpp:30:
./include/ndn-cpp/threadsafe-face.hpp:27:42: error: definition of type 'io_service' conflicts with typedef of the same name
namespace boost { namespace asio { class io_service; }}
                                         ^
/usr/local/include/boost/asio/io_service.hpp:27:20: note: 'io_service' declared here
typedef io_context io_service;
                   ^
2 errors generated.

See https://github.com/named-data/ndn-cxx/commit/4d0d096b2e4ab59dccb0119cf394435dc1f7c555 for reference

History

#1 Updated by Jeff Thompson about 1 year ago

  • Status changed from New to Closed

I was able to install Boost 1.66 and reproduce the bug. As you suggested, I change the headers to include boost/asio.hpp . The fix is merged to master.

Also available in: Atom PDF