Undefined symbols for architecture x86_64:

449 views
Skip to first unread message

Stelsav

unread,
Jun 26, 2017, 4:15:18 PM6/26/17
to ns-3-users
Hi all, 

I am using the example of lena-simple, and i am trying to add flow monitor so i can create some plots. (maybe its possible with the output files already generated?)

Using this code:
// Flow monitor
  FlowMonitorHelper fl;
  Ptr<FlowMonitor> monitor;

  monitor = fl.Install(ueNodes);
  monitor = fl.Install(enbNodes);
  monitor->SetAttribute ("DelayBinWidth", DoubleValue(0.001));
  monitor->SetAttribute ("JitterBinWidth", DoubleValue(0.001));
  monitor->SetAttribute ("PacketSizeBinWidth", DoubleValue(20));


  Simulator::Stop (Seconds (1.05));

  Simulator::Run ();

  flowMonitor->SerializeToXmlFile("test.xml", true, true);


but i am getting this error,

[1225/2533] Compiling src/lte/examples/lena-simple.cc
[2417/2533] Linking build/src/lte/examples/ns3.26-lena-simple-debug
Undefined symbols for architecture x86_64:
  "ns3::FlowMonitorHelper::FlowMonitorHelper()", referenced from:
      _main in lena-simple.cc.10.o
  "ns3::FlowMonitorHelper::~FlowMonitorHelper()", referenced from:
      _main in lena-simple.cc.10.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am on Mac OS Sierra (10.12.1) using ns3.26.

I ve tried searching this mailing list for resolution but so far no good. 
Is there something i can do or is this just an incompatibility issue?

Thanks


Tommaso Pecorella

unread,
Jul 17, 2017, 7:03:48 PM7/17/17
to ns-3-users
Hi,

move your script to the scratch directory. 
The LTE module does not depends on flow-monitor, and it won't be linked with the LTE examples, causing a linking error.


T.
Reply all
Reply to author
Forward
0 new messages