<div dir="ltr">Yes, it is included ("<i><b>ndn-load-balancer/random-load-balancer-strategy.hpp</b></i>"). To clarify the problem, even if I just copy and paste <b><i>ndn-l</i></b><i style="font-weight:bold">oad-balancer.cpp</i> example and rename it, it won't work. Something is wrong with linking part and I guess maybe I need to add the name of new examples to waf/makefile. If you can, please test it on your own machine and let me know if you had any problem.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 8:17 AM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>have you included the appropriate header file in your example?</div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><br></div></div></div></div><span class=""><div><blockquote type="cite"><div>On Jan 2, 2018, at 11:46 PM, chavoosh ghasemi <<a href="mailto:chavoosh.ghasemi.off@gmail.com" target="_blank">chavoosh.ghasemi.off@gmail.<wbr>com</a>> wrote:</div><br class="m_-4757775674403717134Apple-interchange-newline"><div><div dir="ltr"><div>Hi,</div><div><br></div><div>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">examples</i>"<i style="font-weight:bold"> </i>directory. Do I need to add the name of this example to any make/waf file? </div><div><br></div><div>BTW, in continue, you can find the error after trying to run ./waf command.</div><div><br></div><div><font size="1"><br></font></div><div><font size="1">[3165/3179] Linking build/src/ndnSIM/examples/ns3-<wbr>dev-icdn-simple-debug</font></div><div><font size="1"><br></font></div><div><font size="1">src/ndnSIM/examples/icdn-<wbr>simple.cpp.1.o: In function `void ns3::ndn::<wbr>StrategyChoiceHelper::Install<<wbr>nfd::fw::<wbr>RandomLoadBalancerStrategy>(<wbr>ns3::Ptr<ns3::Node>, ndn::Name const&)':</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/<wbr>build/./ns3/ndnSIM/helper/ndn-<wbr>strategy-choice-helper.hpp:<wbr>119: <b>undefined reference to `nfd::fw::<wbr>RandomLoadBalancerStrategy::<wbr>getStrategyName()</b>'</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/<wbr>build/./ns3/ndnSIM/helper/ndn-<wbr>strategy-choice-helper.hpp:<wbr>120: undefined reference to `nfd::fw::<wbr>RandomLoadBalancerStrategy::<wbr>getStrategyName()'</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/<wbr>build/./ns3/ndnSIM/helper/ndn-<wbr>strategy-choice-helper.hpp:<wbr>123: undefined reference to `nfd::fw::<wbr>RandomLoadBalancerStrategy::<wbr>getStrategyName()'</font></div><div><font size="1">src/ndnSIM/examples/icdn-<wbr>simple.cpp.1.o: In function `std::unique_ptr<nfd::fw::<wbr>RandomLoadBalancerStrategy, std::default_delete<nfd::fw::<wbr>RandomLoadBalancerStrategy> > ndn::make_unique<nfd::fw::<wbr>RandomLoadBalancerStrategy, nfd::Forwarder&, ndn::Name const&>(nfd::Forwarder&, ndn::Name const&)':</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/<wbr>build/ns3/ndnSIM/ndn-cxx/util/<wbr>backports.hpp:75: undefined reference to `nfd::fw::<wbr>RandomLoadBalancerStrategy::<wbr>RandomLoadBalancerStrategy(<wbr>nfd::Forwarder&, ndn::Name const&)'</font></div><div><font size="1">collect2: error: ld returned 1 exit status</font></div><div><br></div><div>Thanks,</div><div>- <i>Chavoosh</i></div>-- <br><div class="m_-4757775674403717134gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="color:rgb(34,34,34)"><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><i><b>Chavoosh Ghasemi</b></i><br></span></font></div></div></div></div></div></font></span></div></div></div></div></div></div></blockquote></div><br></span></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="color:rgb(34,34,34)"><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><i style="color:rgb(0,0,0)"><b>Chavoosh Ghasemi</b></i><br><span style="color:rgb(153,153,0)"><br><span style="color:rgb(153,0,0)">Ph.D. Student in Computer Networking</span></span></span></font><span style="color:rgb(153,0,0)"><span style="font-family:georgia,serif"> </span><span style="font-family:georgia,serif"><br>University of Arizona - Computer Science Department</span><font size="1"><b><i><br></i></b></font></span></div><div style="color:rgb(34,34,34)"><span style="color:rgb(204,0,0)"><font size="1"><b><i>Address: Gould-Simpson 721B, </i></b></font><font size="1"><b><i>1040 E. 4th Street,<br></i></b></font></span></div><div dir="ltr" style="color:rgb(34,34,34)"><span style="color:rgb(153,0,0)"><font size="1"><b><i><span style="color:rgb(204,0,0)">                 Tucson, AZ 85721</span><br><br>"The <i>quieter</i> you become, the <i>more you can hear"</i></i></b></font></span></div></div></div></div></div>
</font></span>
</div></div></div></div>
</div>