[ndnSIM] Comile Error(ndnsim2.7) on MacOS Mojave

김학서 tuple at etri.re.kr
Fri May 3 01:37:16 PDT 2019


Dear all,

I am trying to install ndnsim 2.7 on Mac OS Mojave.

The following error occurred.
My boost version is boost-1.69.0_2.

May I know how I can solve it.

Best Regards,
HS Kim


======================
using std::experimental::basic_string_view;
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      std::basic_string_view
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:194:28: note: 'std::basic_string_view' declared here
class _LIBCPP_TEMPLATE_VIS basic_string_view {
                           ^
In file included from ../src/ndnSIM/NFD/daemon/fw/algorithm.cpp:26:
In file included from ../src/ndnSIM/NFD/daemon/fw/algorithm.hpp:29:
In file included from ns3/ndnSIM/NFD/core/scope-prefix.hpp:29:
In file included from ns3/ndnSIM/NFD/core/common.hpp:66:
In file included from ns3/ndnSIM/ndn-cxx/net/face-uri.hpp:35:
In file included from /opt/local/include/boost/asio/ip/tcp.hpp:19:
In file included from /opt/local/include/boost/asio/basic_socket_acceptor.hpp:20:
In file included from /opt/local/include/boost/asio/basic_socket.hpp:40:
In file included from /opt/local/include/boost/asio/detail/reactive_socket_service.hpp:22:
In file included from /opt/local/include/boost/asio/buffer.hpp:27:
/opt/local/include/boost/asio/detail/string_view.hpp:33:7: error: no member named 'string_view' in namespace 'std::experimental'; did you mean 'std::string_view'?
using std::experimental::string_view;
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      std::string_view
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:770:37: note: 'std::string_view' declared here
typedef basic_string_view<char>     string_view;
                                    ^
3 errors generated.

Waf: Leaving directory `/Users/tuple/Downloads/work/ndnSIM/ns-3/build'
Build failed
 -> task in 'ns3-ndnSIM' failed with exit status 1 (run with -v to display more information)
 -> task in 'ns3-ndnSIM' failed with exit status 1 (run with -v to display more information)
 -> task in 'ns3-ndnSIM' failed with exit status 1 (run with -v to display more information)





More information about the ndnSIM mailing list