[ndnSIM] Linking error

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Wed Jan 3 07:17:24 PST 2018


Hi,

have you included the appropriate header file in your example?

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180103/a110cd95/attachment.html>


More information about the ndnSIM mailing list