[ndnSIM] Linking error

chavoosh ghasemi chavoosh.ghasemi.off at gmail.com
Tue Jan 2 13:46:51 PST 2018


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*

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/20180102/ac161d69/attachment.html>


More information about the ndnSIM mailing list