[Nfd-dev] ndn-cxx compiling problem

Weiwei Liu summerwing10 at gmail.com
Wed Oct 19 10:36:12 PDT 2016


My boost version is 1.59.0. Does the bug exist in this version and what is
the workaround?


Thanks,

Weiwei



2016-10-19 3:48 GMT-07:00 Davide Pesavento <davide.pesavento at lip6.fr>:

> On Wed, Oct 19, 2016 at 8:50 AM, Weiwei Liu <summerwing10 at gmail.com>
> wrote:
> > Dear folks,
> >
> > I'm getting errors when compiling ndn-cxx with tests. Does anyone know
> what
> > is causing this problem?
> >
> > Here is some detailed information:
> >
> > ndn-cxx 010f0868cd204f75f661acc4320803d783786213
> > OSX 10.10.5 LLVM version 7.0.2 (clang-700.1.81)
> >
> > [170/304] Compiling tests/unit-tests/util/io.t.cpp
> >
> > [171/304] Compiling tests/unit-tests/util/log-module1.cpp
> >
> > [172/304] Compiling tests/unit-tests/util/notification-stream.t.cpp
> >
> > ../tests/unit-tests/util/log-module1.cpp:33:3: error: invalid operands
> to
> > binary expression ('basic_record_ostream<char_type>' and
> > '::ndn::util::LoggerTimestamp')
> >
> >   NDN_LOG_TRACE("trace" << 1);
> >
> >   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > /Users/weiweiliu/development/ndn-cxx/src/util/logger.hpp:137:35: note:
> > expanded from macro 'NDN_LOG_TRACE'
> >
> > #define NDN_LOG_TRACE(expression) NDN_LOG(TRACE, TRACE, expression)
> >
> >                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > /Users/weiweiliu/development/ndn-cxx/src/util/logger.hpp:128:40: note:
> > expanded from macro 'NDN_LOG'
> >
> >       NDN_BOOST_LOG(getNdnCxxLogger()) <<
> ::ndn::util::LoggerTimestamp{} \
> >
> >       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > ... ...
> >
>
> We should already have a workaround for this in place (it's a boost
> bug), or maybe it's a different issue.
> What's your boost version?
>
> Thanks,
> Davide
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20161019/9ad9d280/attachment.html>


More information about the Nfd-dev mailing list