build failure on mac

23 views
Skip to first unread message

Deb

unread,
Apr 5, 2017, 6:11:21 AM4/5/17
to ns-3-users
I am getting the following error while trying to build ns3 on mac. Any help is appreciated!

$ ./waf build

Waf: Entering directory `xxx/yyy/build'

[1772/1836] Linking build/libns3-dev-utilization-tracker-debug.dylib

Undefined symbols for architecture x86_64:

  "ns3::PointToPointNetDevice::GetDataRate()", referenced from:

      ns3::UtilizationTracker::PrintTraces(ns3::Ptr<ns3::OutputStreamWrapper>) in utilization-tracker.cc.1.o

  "typeinfo for ns3::PointToPointNetDevice", referenced from:

      ns3::Ptr<ns3::PointToPointNetDevice> ns3::DynamicCast<ns3::PointToPointNetDevice, ns3::NetDevice>(ns3::Ptr<ns3::NetDevice> const&) in utilization-tracker.cc.1.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Tommaso Pecorella

unread,
Apr 5, 2017, 6:22:25 AM4/5/17
to ns-3-users
Hi,

don't blame MacOs: it is not responsible for your programming mistakes.

There's no class "UtilizationTracker" in ns-3. As a consequence, it must be your (and without its code, we can't do anything - almost).
In any case, PointToPointNetDevice does not have any member function named GetDataRate.

Summarizing... double error. Re-check your code and don't assume that a function is there just because its name sounds right.
Use the code documentation and read the module sources instead.


T.
Reply all
Reply to author
Forward
0 new messages