[ndnSIM] Linking error

chavoosh ghasemi chavoosh.ghasemi.off at gmail.com
Wed Jan 3 08:26:01 PST 2018


Yes, it is included ("*ndn-load-balancer/random-load-balancer-strategy.hpp*").
To clarify the problem, even if I just copy and paste *ndn-l*
*oad-balancer.cpp* 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.

On Wed, Jan 3, 2018 at 8:17 AM, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> Hi,
>
> have you included the appropriate header file in your example?
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> On Jan 2, 2018, at 11:46 PM, chavoosh ghasemi <chavoosh.ghasemi.off at gmail.
> com> wrote:
>
> Hi,
>
> I'm trying to use RandomLoadBalancer strategy in an example; however,
> apparently, there is a linking error. The example is located in the "
> *examples*" directory. Do I need to add the name of this example to any
> make/waf file?
>
> BTW, in continue, you can find the error after trying to run ./waf command.
>
>
> [3165/3179] Linking build/src/ndnSIM/examples/ns3-dev-icdn-simple-debug
>
> 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&)':
> /home/vagrant/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-
> strategy-choice-helper.hpp:119: *undefined reference to
> `nfd::fw::RandomLoadBalancerStrategy::getStrategyName()*'
> /home/vagrant/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-
> strategy-choice-helper.hpp:120: undefined reference to `nfd::fw::
> RandomLoadBalancerStrategy::getStrategyName()'
> /home/vagrant/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-
> strategy-choice-helper.hpp:123: undefined reference to `nfd::fw::
> RandomLoadBalancerStrategy::getStrategyName()'
> 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&)':
> /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&)'
> collect2: error: ld returned 1 exit status
>
> Thanks,
> - *Chavoosh*
> --
> *Chavoosh Ghasemi*
>
>
>


-- 
*Chavoosh Ghasemi*

Ph.D. Student in Computer Networking
University of Arizona - Computer Science Department
*Address: Gould-Simpson 721B, *
*1040 E. 4th Street,*


*                 Tucson, AZ 85721"The quieter you become, the more you can
hear"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180103/e9af567c/attachment.html>


More information about the ndnSIM mailing list