how to build ns3 with c++11?

53 views
Skip to first unread message

husyi...@gmail.com

unread,
Oct 23, 2016, 10:28:10 PM10/23/16
to ns-3-users
I have builded ns3 successfully with eclipse cdt.
And I use KODO library to simulate.
But KODO library build with c++11 and it use c++11 standard.
When KODO combined with ns3, ns3 has some errors, but ns3 can run through.
The question is, how to get rid of the errors?

Jack Higgins

unread,
Oct 23, 2016, 11:37:20 PM10/23/16
to ns-3-users
simple, assuming your errors are only caused by not using c++11:


CXXFLAGS="-std=c++11" ./waf build 



Tommaso Pecorella

unread,
Oct 24, 2016, 3:56:26 AM10/24/16
to ns-3-users
Use ns-3.26, it has C++11 enabled.

T.

husyi...@gmail.com

unread,
Oct 24, 2016, 8:27:35 AM10/24/16
to ns-3-users

Thank you very much.
I have successfully configured ns3 with c++11 in eclipse cdt.
The ns3.26 is builded with c++11.

在 2016年10月24日星期一 UTC+8上午11:37:20,Jack Higgins写道:

husyi...@gmail.com

unread,
Oct 24, 2016, 8:28:42 AM10/24/16
to ns-3-users
Thank you very much.
It worked!!!

在 2016年10月24日星期一 UTC+8下午3:56:26,Tommaso Pecorella写道:
Reply all
Reply to author
Forward
0 new messages