<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="">Hi,<div class=""><br class=""></div><div class="">have you included the appropriate header file in your example?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Jan 2, 2018, at 11:46 PM, chavoosh ghasemi <<a href="mailto:chavoosh.ghasemi.off@gmail.com" class="">chavoosh.ghasemi.off@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">I'm trying to use RandomLoadBalancer strategy in an example; however, apparently, there is a linking error. The example is located in the "<i style="font-weight:bold" class="">examples</i>"<i style="font-weight:bold" class=""> </i>directory. Do I need to add the name of this example to any make/waf file? </div><div class=""><br class=""></div><div class="">BTW, in continue, you can find the error after trying to run ./waf command.</div><div class=""><br class=""></div><div class=""><font size="1" class=""><br class=""></font></div><div class=""><font size="1" class="">[3165/3179] Linking build/src/ndnSIM/examples/ns3-dev-icdn-simple-debug</font></div><div class=""><font size="1" class=""><br class=""></font></div><div class=""><font size="1" class="">src/ndnSIM/examples/icdn-simple.cpp.1.o: In function `void ns3::ndn::StrategyChoiceHelper::Install<nfd::fw::RandomLoadBalancerStrategy>(ns3::Ptr<ns3::Node>, ndn::Name const&)':</font></div><div class=""><font size="1" class="">/home/vagrant/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:119: <b class="">undefined reference to `nfd::fw::RandomLoadBalancerStrategy::getStrategyName()</b>'</font></div><div class=""><font size="1" class="">/home/vagrant/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:120: undefined reference to `nfd::fw::RandomLoadBalancerStrategy::getStrategyName()'</font></div><div class=""><font size="1" class="">/home/vagrant/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:123: undefined reference to `nfd::fw::RandomLoadBalancerStrategy::getStrategyName()'</font></div><div class=""><font size="1" class="">src/ndnSIM/examples/icdn-simple.cpp.1.o: In function `std::unique_ptr<nfd::fw::RandomLoadBalancerStrategy, std::default_delete<nfd::fw::RandomLoadBalancerStrategy> > ndn::make_unique<nfd::fw::RandomLoadBalancerStrategy, nfd::Forwarder&, ndn::Name const&>(nfd::Forwarder&, ndn::Name const&)':</font></div><div class=""><font size="1" class="">/home/vagrant/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/util/backports.hpp:75: undefined reference to `nfd::fw::RandomLoadBalancerStrategy::RandomLoadBalancerStrategy(nfd::Forwarder&, ndn::Name const&)'</font></div><div class=""><font size="1" class="">collect2: error: ld returned 1 exit status</font></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">- <i class="">Chavoosh</i></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span class=""><font color="#888888" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" style="color:rgb(34,34,34)" class=""><font color="#888888" class=""><span style="color:rgb(0,0,153);font-family:georgia,serif" class=""><i style="" class=""><b class="">Chavoosh Ghasemi</b></i><br class=""></span></font></div></div></div></div></div></font></span></div></div></div></div></div></div></blockquote></div><br class=""></div></body></html>