<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">If you're trying to use an external library, then you need not just put headers in (unless it is just header-only library), but also properly link the library to the code, in this case to ndnSIM module.  You can take a look at examples in wscript in NS-3 folder, examples in waf book, and examples in waf source (the last one, in my opinion, is the best place to look).</div><div class=""><br class=""></div><div class="">Also. Based on the errors, I highly suspect that you not going to succeed in making Redis working with NS-3.  NS-3 is a discrete event simulator that expects that all events are scheduled and processed by the NS-3's Simulator interface.  ev_io_start is part of libev library that implements an even loop.  You can probably make code compile (e.g., by properly linking to libev), but it most likely not going to give you the expected results: some parts of the code will be working with simulated events (simulated time), some parts with real events (real time) with unpredictable interactions.  You can try to replace the even loop in redis library by NS-3's facilities (this is exactly what has been done for ndn-cxx and NFD integration), but it may be a non-trivial task.</div><div class=""><br class=""></div><div class="">--</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 2, 2017, at 11:11 AM, Mobin Ranjbar <<a href="mailto:mobinranjbar@hotmail.com" class="">mobinranjbar@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Tahoma, Geneva, sans-serif;" class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div class="">Hi there,</div><div class=""><br class=""></div><div class="">I am going to replace Table data structure with Redis in-memory database in Content-Store for benchmarking purpose. I have downloaded a C++ client for Redis called Redox that has some .h and .hpp files. I have added #include parts in cs-entry.cpp and run ./waf. But there are some errors following below:</div><div class=""><br class=""></div><div class="">./libns3-dev-ndnSIM-debug.so: undefined reference to `ev_io_start`</div><div class="">./libns3-dev-ndnSIM-debug.so: undefined reference to `redisAsyncHandleRead`</div><div class="">./libns3-dev-ndnSIM-debug.so: undefined reference to `ev_io_stop`</div><div class="">./libns3-dev-ndnSIM-debug.so: undefined reference to `redisAsyncHandleWrite`</div><div class="">`</div><div class=""><br class=""></div><div class="">I figured out that it does not find those headers but I do not know where do I have to put header definition to make './waf' aware of new module. Any idea about this problem? Where should .h and .hpp files be defined? I have defined them in ndn-all.hpp but no hopes.</div><div class=""><br class=""></div><div class="">Thanks for your help.</div><br class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><font size="4" style="line-height: normal;" class="">________</font></div><div style="line-height: 21.3px; font-size: 15px; background-color: rgb(255, 255, 255);" class=""><font size="4" style="line-height: normal;" class=""><b style="line-height: 25.56px;" class="">Mobin Ranjbar</b></font></div><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><div style="line-height: 21.3px;" class=""><font color="#666666" style="line-height: normal;" class="">Software Engineer, Big Data Evangelist and Startup Guy</font></div></div><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><font size="3" color="#666666" style="line-height: normal;" class="">Co-Founder of <a href="http://www.irstartups.com/" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207);" class="">Iran Startups</a></font></div><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><font color="#666666" size="3" style="line-height: normal;" class="">Founder of <a href="http://shariksho.com/" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207);" class="">Shariksho</a></font></div><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><font color="#666666" size="3" style="line-height: normal;" class="">Editor in Chief at <a href="http://techly.co/" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207);" class="">Techly.co</a></font></div><div style="line-height: 21.3px; font-size: 15px; background-color: rgb(255, 255, 255);" class=""><span style="line-height: 22.72px; font-size: 12pt;" class=""><font color="#666666" class="">Founder of<span class="Apple-converted-space"> </span></font><a href="http://www.farafekr.co/" target="_blank" id="LPNoLP" class=""><font color="#2672ec" class="">FaraFekr Technology</font></a></span></div><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><span style="line-height: 22.72px; color: rgb(102, 102, 102); font-size: 12pt;" class="">Founder of <a href="http://hadoop.ir/" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207);" class="">Hadoop.ir</a></span></div><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><span style="line-height: 22.72px; color: rgb(102, 102, 102); font-size: 12pt;" class="">Founder of <a href="http://bigdatawatcher.com/" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207);" class="">Big Data Watcher</a></span></div><div style="line-height: 21.3px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);" class=""><a href="http://mobinranjbar.com/" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207); font-size: 14px;" class="">Website</a><font style="line-height: normal; font-size: 12pt;" class=""> | </font><a href="http://twitter.com/mobinranjbar" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207); font-size: 14px;" class="">Twitter</a><font style="line-height: normal; font-size: 12pt;" class=""> | </font><a href="https://www.linkedin.com/in/mobinranjbar" target="_blank" id="LPNoLP" style="line-height: 22.72px; font-weight: inherit; color: rgb(0, 104, 207); font-size: 14px;" class="">Linkedin</a><font style="line-height: normal; font-size: 12pt;" class=""> | </font><font color="#666666" size="2" style="line-height: normal;" class="">skype: mobinranjbar</font></div></div></div></div></blockquote></div><br class=""></body></html>