问题描述
我正在使用OMNET 4.4. OMNET编译时会说
I am using OMNET 4.4. When OMNET compiles it says that
还会出现以下错误:
/veins/modules/application/traci/TraCITestApp.h:78:36: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
我正在使用Windows 10,但无法在Internet中找到解决方案.
I am using windows 10 and I could not find solution to it in internet .
有人可以帮助我提供一些信息吗?
Can anyone help me with some information ?
推荐答案
首先,此警告不是来自OMNeT ++的版本,而是来自Veins的版本.不一样没有C ++ 11支持的OMNeT ++ 4.4构建很好,但是似乎最新版本的Veins可能需要它.但是,这再次是警告.可以使用-std=c++11
配置OMNeT ++ 4.6和更高版本.
First, this warning is not coming up from the build of OMNeT++, but from the build of Veins. It is not the same. OMNeT++ 4.4 builds without C++11 support fine, but it seems that recent versions of Veins may need it. However again, this is a warning. OMNeT++ 4.6 and later can be configured with the -std=c++11
.
您可能还需要更新编译器,因为至少3年以来,任何最新的编译器都完全支持c ++ 11.
You may need to update your compiler, too as any recent compiler fully supports c++11 since at least 3 years.
这篇关于omnet中对ISO c ++ 2011标准的库支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!