<div dir="ltr">I see your point. However, what if we want to link this renamed file to the compilation units? How does it work?<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 8, 2018 at 6:22 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.fiu.edu" target="_blank">aa@cs.fiu.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;line-break:after-white-space">You cannot just rename the scenario, as there is a naming convention of how scenarios are compiled.  Normally, the scenario.cpp file is linked together with ndnSIM and rest of NS-3 and nothing else.  In this case, the scenario is also linked to all compilation units under <scenario>/ folder.  Therefore, if you rename just scenario.cpp, it is no longer linked to other required files and you have errors.<div><br></div><div>My default recommendation is to use the scenario template that applies a more user-friendly conventions described in README.</div><div><br></div><div>--</div><div>Alex<br><div><br><blockquote type="cite"><div><div class="m_-5575615250298952965h5"><div>On Jan 3, 2018, at 11:26 AM, chavoosh ghasemi <<a href="mailto:chavoosh.ghasemi.off@gmail.com" target="_blank">chavoosh.ghasemi.off@gmail.co<wbr>m</a>> wrote:</div><br class="m_-5575615250298952965m_-1833803266234498519Apple-interchange-newline"></div></div><div><div><div class="m_-5575615250298952965h5"><div dir="ltr" style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Yes, it is included ("<i><b>ndn-load-balancer/random-loa<wbr>d-balancer-strategy.hpp</b></i>"). To clarify the problem, even if I just copy and paste<span class="m_-5575615250298952965m_-1833803266234498519Apple-converted-space"> </span><b><i>ndn-l</i></b><i style="font-weight:bold">oad-balancer.cpp</i> ex<wbr>ample 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" style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 8:17 AM, Spyridon (Spyros) Mastorakis<span class="m_-5575615250298952965m_-1833803266234498519Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla<wbr>.edu</a>></span><span class="m_-5575615250298952965m_-1833803266234498519Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);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/~m<wbr>astorakis/</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><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.co<wbr>m</a>> wrote:</div><br class="m_-5575615250298952965m_-1833803266234498519m_-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-simpl<wbr>e.cpp.1.o: In function `void ns3::ndn::StrategyChoiceHelper<wbr>::Install<nfd::fw::RandomLoadB<wbr>alancerStrategy>(ns3::Ptr<ns3:<wbr>:Node>, ndn::Name const&)':</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/buil<wbr>d/./ns3/ndnSIM/helper/ndn-stra<wbr>tegy-choice-helper.hpp:119:<span class="m_-5575615250298952965m_-1833803266234498519Apple-converted-space"> </span><b>un<wbr>defined reference to `nfd::fw::RandomLoadBalancerSt<wbr>rategy::getStrategyName()</b>'</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/buil<wbr>d/./ns3/ndnSIM/helper/ndn-stra<wbr>tegy-choice-helper.hpp:120: undefined reference to `nfd::fw::RandomLoadBalancerSt<wbr>rategy::getStrategyName()'</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/buil<wbr>d/./ns3/ndnSIM/helper/ndn-stra<wbr>tegy-choice-helper.hpp:123: undefined reference to `nfd::fw::RandomLoadBalancerSt<wbr>rategy::getStrategyName()'</font></div><div><font size="1">src/ndnSIM/examples/icdn-simpl<wbr>e.cpp.1.o: In function `std::unique_ptr<nfd::fw::Rand<wbr>omLoadBalancerStrategy, std::default_delete<nfd::fw::R<wbr>andomLoadBalancerStrategy> > ndn::make_unique<nfd::fw::Rand<wbr>omLoadBalancerStrategy, nfd::Forwarder&, ndn::Name const&>(nfd::Forwarder&, ndn::Name const&)':</font></div><div><font size="1">/home/vagrant/ndnSIM/ns-3/buil<wbr>d/ns3/ndnSIM/ndn-cxx/util/back<wbr>ports.hpp:75: undefined reference to `nfd::fw::RandomLoadBalancerSt<wbr>rategy::RandomLoadBalancerStra<wbr>tegy(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>-<span class="m_-5575615250298952965m_-1833803266234498519Apple-converted-space"> </span><i>Chavoosh</i></div>--<span class="m_-5575615250298952965m_-1833803266234498519Apple-converted-space"> </span><br><div class="m_-5575615250298952965m_-1833803266234498519m_-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>--<span class="m_-5575615250298952965m_-1833803266234498519Apple-converted-space"> </span><br><div class="m_-5575615250298952965m_-1833803266234498519gmail_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><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></div></div><span style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">______________________________<wbr>_________________</span><br style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">ndnSIM mailing list</span><br style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="mailto:ndnSIM@lists.cs.ucla.edu" style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" style="font-family:Georgia;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://www.lists.cs.ucla.edu/m<wbr>ailman/listinfo/ndnsim</a></div></blockquote></div><br><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space">______________<span class="m_-5575615250298952965HOEnZb"><font color="#888888"><br>Alex Afanasyev<br>Assistant Professor, SCIS, Florida International University<br>11200 SW 8th Street, ECS Room 261B, Miami, FL 33199<br>phone: <a href="tel:(305)%20348-4960" value="+13053484960" target="_blank">+1.305.348.4960</a> (office); <a href="mailto:aa@cs.fiu.edu" target="_blank">email: aa@cs.fiu.edu</a><br>web: <a href="https://users.cs.fiu.edu/~afanasyev/" target="_blank">https://users.cs.fiu.edu/~afan<wbr>asyev/</a><br><br></font></span></div></div></div>
</div>
<br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-5575615250298952965gmail_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></div>