Library support for the ISO c++ 2011 standard in omnet

我只是一个虾纸丫 提交于 2020-01-03 05:46:12

问题


I am using OMNET 4.4. When OMNET compiles it says that

this file requires compiler and library support for the ISO c++ 2011 standard. This support is currently experimental and must be enabled with -std=c++11 or -gnu=c++11 compiler options.

Also following error appears:

/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]

I am using windows 10 and I could not find solution to it in internet .

Can anyone help me with some information ?


回答1:


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.

You may need to update your compiler, too as any recent compiler fully supports c++11 since at least 3 years.



来源:https://stackoverflow.com/questions/41013033/library-support-for-the-iso-c-2011-standard-in-omnet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!