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

ndn ndn ndn at sqh.me
Thu Nov 5 03:12:41 PST 2015


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/20151105/ab702540/attachment.html>


More information about the Nfd-dev mailing list