环境:
- Ubuntu16.04
- ns-3.26
问题描述:
当对ns-3.26执行编译命令时./waf clean;./waf configure;./waf
,出现如下错误
../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