thank you, Konstantinos. i correct my code on the basis of your advice, but there is something wrong. the error information :
msg="Incompatible types. (feed to "c++filt -t" if needed)
got=ns3::FunctorCallbackImpl<void (*)(std::string, ns3::Ptr<ns3::MobilityModel const>), void, std::string, ns3::Ptr<ns3::MobilityModel const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>
expected=ns3::CallbackImpl<void, ns3::Ptr<ns3::MobilityModel const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>*", file=./ns3/callback.h, line=1195
terminate called without an active exception
Command ['/home/highway/workspace/ns-allinone-3.19/ns-3.19/build/scratch/third'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
i only add the trace code to the third.cc and don't correct any other code.
在 2014年4月24日星期四UTC+1下午10时55分59秒,Konstantinos写道: