[Nfd-dev] ndn-cxx can't complier well

ndn ndn ndn at sqh.me
Mon Nov 9 00:32:56 PST 2015


Hello,
Thank for Alex help, I found I didn't delete all file in nan-cxx, after I
delete all file and resend all file ,it works.

yours,
qhsong


2015-11-05 19:12 GMT+08:00 ndn ndn <ndn at sqh.me>:

> Dear all,
> Recently I update nan-cxx from github.com/named-data,and try ./waf
> configure and ./waf, when I use ./waf ,It sucks in following problem:
>
> [107/141] Compiling src/security/sec-rule-relative.cpp
> ../src/management/nfd-control-response.cpp:35:34: error: definition of
> ‘ndn::mgmt::ControlResponse::ControlResponse()’ is not in namespace
> enclosing ‘ndn::mgmt::ControlResponse’ [-fpermissive]
>  ControlResponse::ControlResponse()
>                                   ^
> ../src/management/nfd-control-response.cpp:40:72: error: definition of
> ‘ndn::mgmt::ControlResponse::ControlResponse(uint32_t, const string&)’ is
> not in namespace enclosing ‘ndn::mgmt::ControlResponse’ [-fpermissive]
>  ControlResponse::ControlResponse(uint32_t code, const std::string& text)
>                                                                         ^
> ../src/management/nfd-control-response.cpp:46:52: error: definition of
> ‘ndn::mgmt::ControlResponse::ControlResponse(const ndn::Block&)’ is not in
> namespace enclosing ‘ndn::mgmt::ControlResponse’ [-fpermissive]
>  ControlResponse::ControlResponse(const Block& block)
>                                                     ^
> ../src/management/nfd-control-response.cpp:52:31: error: definition of
> ‘const ndn::Block& ndn::mgmt::ControlResponse::wireEncode() const’ is not
> in namespace enclosing ‘ndn::mgmt::ControlResponse’ [-fpermissive]
>  ControlResponse::wireEncode() const
>                                ^
> ../src/management/nfd-control-response.cpp:71:46: error: definition of
> ‘void ndn::mgmt::ControlResponse::wireDecode(const ndn::Block&)’ is not in
> namespace enclosing ‘ndn::mgmt::ControlResponse’ [-fpermissive]
>  ControlResponse::wireDecode(const Block& wire)
>                                               ^
>
> Waf: Leaving directory `/home/niclab/ndn-cxx/build'
> Build failed
>  -> task in 'ndn-cxx' failed (exit status 1):
> {task 140142403920080: cxx nfd-control-response.cpp -> nfd
> -control-response.cpp.2.o}
> ['/usr/bin/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra',
> '-Wno-unused-parameter', '-Wno-missing-field-initializers',
> '-fdiagnostics-color', '-std=c++11', '-fPIC', '-include',
> '/home/niclab/ndn-cxx/build/ndn-cxx.2', '-I/home/niclab/ndn-cxx/build',
> '-I/home/niclab/ndn-cxx', '-I/home/niclab/ndn-cxx/build/src',
> '-I/home/niclab/ndn-cxx/src', '-I/usr/include', '-DNDEBUG',
> '../src/management/nfd-control-response.cpp', '-c', '-o',
> '/home/niclab/ndn-cxx/build/src/management/nfd-control-response.cpp.2.o']
>
>
> I read the source code and found no solution to solve it.Could you help me?
> And also,I delete /usr/local/include/ndn-cxx folder,libndn-cxx.a file,the
> Problem still remain?Now I have no idea in this.
>
>  yours
> qhsong
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20151109/72208e03/attachment.html>


More information about the Nfd-dev mailing list