<div dir="ltr">Hello, <div>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.</div><div><br></div><div>yours,</div><div>qhsong</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-05 19:12 GMT+08:00 ndn ndn <span dir="ltr"><<a href="mailto:ndn@sqh.me" target="_blank">ndn@sqh.me</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:14px">Dear all,</span><div style="font-size:14px">Recently I update nan-cxx from <a href="http://github.com/named-data,and" target="_blank">github.com/named-data,and</a> try ./waf configure and ./waf, when I use ./waf ,It sucks in following problem:</div><div style="font-size:14px"><br></div><div style="font-size:14px"><div>[107/141] Compiling src/security/sec-rule-relative.cpp</div><div>../src/management/<span>nfd</span>-control-response.cpp:35:34: error: definition of ‘ndn::mgmt::ControlResponse::ControlResponse()’ is not in namespace enclosing ‘ndn::mgmt::ControlResponse’ [-fpermissive]</div><div> ControlResponse::ControlResponse()</div><div>                                  ^</div><div>../src/management/<span>nfd</span>-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]</div><div> ControlResponse::ControlResponse(uint32_t code, const std::string& text)</div><div>                                                                        ^</div><div>../src/management/<span>nfd</span>-control-response.cpp:46:52: error: definition of ‘ndn::mgmt::ControlResponse::ControlResponse(const ndn::Block&)’ is not in namespace enclosing ‘ndn::mgmt::ControlResponse’ [-fpermissive]</div><div> ControlResponse::ControlResponse(const Block& block)</div><div>                                                    ^</div><div>../src/management/<span>nfd</span>-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]</div><div> ControlResponse::wireEncode() const</div><div>                               ^</div><div>../src/management/<span>nfd</span>-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]</div><div> ControlResponse::wireDecode(const Block& wire)</div><div>                                              ^</div><div><br></div><div>Waf: Leaving directory `/home/niclab/ndn-cxx/build'</div><div>Build failed</div><div> -> task in 'ndn-cxx' failed (exit status 1):</div><div><span style="white-space:pre-wrap">  </span>{task 140142403920080: cxx <span>nfd</span>-control-response.cpp -> <span>nfd</span>-control-response.cpp.2.o}</div><div>['/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/<span>nfd</span>-control-response.cpp', '-c', '-o', '/home/niclab/ndn-cxx/build/src/management/<span>nfd</span>-control-response.cpp.2.o']</div></div><div style="font-size:14px"><br></div><div style="font-size:14px"><br></div><div style="font-size:14px">I read the source code and found no solution to solve it.Could you help me?<br></div><div style="font-size:14px">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.</div><div style="font-size:14px"><br></div><div style="font-size:14px"> yours</div><div style="font-size:14px">qhsong</div></div>
</blockquote></div><br></div>