ns3如何编译成功并添加aqua-sim模块
环境:
Ubuntu16.04
ns-3.26
问题:
../src/network/model/node.cc: In static member function ‘static ns3::TypeId ns3::Node::GetTypeId()’:
../src/network/model/node.cc:70:48: error: enum constant in boolean context [-Werror=int-in-bool-context]
TypeId::ATTR_GET || TypeId::ATTR_SET,
^~~~~~~~
cc1plus: all warnings being treated as errors
解决办法:
应执行如下编译命令:./waf clean; CXXFLAGS="-O3" ./waf configure; ./waf
将 aqua-sim
放入 src
目录中即可编译成功! ns-3.3
系列问题较多
转自:https://blog.csdn.net/liu14lang/article/details/103679281