<div dir="ltr">Hi antil<div><br></div><div>Please notice this in the examples:</div><div><div><font face="monospace, monospace">// correct way to include ndn-cxx headers</font></div><div><font face="monospace, monospace">// #include <ndn-cxx/face.hpp></font></div><div><font face="monospace, monospace">#include "face.hpp"</font></div></div><div><br></div><div>You need to:</div><div><ol><li>uncomment <span style="font-family:monospace,monospace">#include <ndn-cxx/face.hpp></span></li><li>comment out <span style="font-family:monospace,monospace">#include "face.hpp"</span></li></ol></div><div><br></div><div>The build command for a single .cpp on Ubuntu 12.04 is:</div><div><font face="monospace, monospace">g++ -std=c++0x x.cpp $(pkg-config --cflags --libs libndn-cxx)</font><br></div><div><br></div><div>Setup your Eclipse project to use this or a similar build command.</div><div><br></div><div>Yours, Junxiao</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 1:21 PM, antil janu <span dir="ltr"><<a href="mailto:antil.janu@gmail.com" target="_blank">antil.janu@gmail.com</a>></span> wrote:<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:12.8000001907349px">Hello,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I followed the example code given here: <a href="http://named-data.net/doc/ndn-cxx/current/examples.html" target="_blank">http://named-data.net/doc/ndn-cxx/current/examples.html</a>. Created corresponding src/header files in Eclipse (CDT) environment. Also configured the "include" paths so that ndn-cxx and boost headers are referenced correctly.<div><br></div><div>I get the error from following lines in all three Class(s) files. </div><div><br></div><div><div>    m_face.expressInterest(interest,</div><div>                                           bind(&Consumer::onData, this,  _1, _2),</div><div>                                           bind(&Consumer::onTimeout, this, _1));</div></div><div><br></div><div>The error says - "Function 'bind' could not be resolved". </div><div><br></div><div>How do we fix this problem? These are ndn-cxx example program, but I want to build them outside ndn-cxx path. Do I have to write the wscript file for this and how?</div><div><br></div><div>Thanks. </div></div></div></blockquote></div></div></div>