having error when get packet from queue pop

28 views
Skip to first unread message

Yu-Xiang Huang

unread,
Jun 15, 2017, 5:42:30 AM6/15/17
to ns-3-users
Hi all,

I add my module "vgsqueue" to  simulate queuing delay of LTE packets. But the module will have errors when it be compiled. (I use the LTE example to compile and test this module)

I don't know why has errors when the module is compiled.

Maybe  errors occurred from the code "this->vgs_test.front();" when I want to pop the packet from a queue. 
(The queue type is "std::queue<Ptr<Packet>> vgs_test;".)

The error figure:


the module code is in attachment file. 


Best Regards,

Thank you so much!
vgsqueue.cc
vgsqueue.h

Tommaso Pecorella

unread,
Jul 10, 2017, 7:00:31 PM7/10/17
to ns-3-users
In the scratch it works (after fixing a >> that had to be a > >)

Check your wscript, perhaps you're missing a dependency.

T.

Yu-Xiang Huang

unread,
Jul 24, 2017, 9:44:59 PM7/24/17
to ns-3-users
OK, I got it , Thank you so much!

Tommaso Pecorella於 2017年7月11日星期二 UTC+8上午7時00分31秒寫道:
Reply all
Reply to author
Forward
0 new messages