omn​​et中对ISO c ++ 2011标准的库支持 [英] Library support for the ISO c++ 2011 standard in omnet

查看:71
本文介绍了omn​​et中对ISO c ++ 2011标准的库支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OMNET 4.4. OMNET编译时会说

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

此文件需要ISO c ++ 2011标准的编译器和库支持.该支持目前处于试验阶段,必须使用-std = c ++ 11或-gnu = c ++ 11编译器选项启用.

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.

还会出现以下错误:

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

这篇关于omn​​et中对ISO c ++ 2011标准的库支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆