安装时OMNeT++和INET示例中出现参数未分配错误

问题描述 投票:0回答:2

我已经安装了 OMNeT++ 5.6.2 并添加了 INET 4.2.1 框架。 我按照给定的文档按照设置说明进行了编译并进行了制作。 在运行 ./aloha 时,我似乎遇到参数未分配错误,如下所示:

Setting up Cmdenv...

Loading NED files from .:  4

Preparing for running configuration General, run #0...
Assigned runID=General-0-20201227-14:11:08-9189
Setting up network "Aloha"...

<!> Error: The simulation wanted to ask a question, set cmdenv-interactive=true to allow it: "Enter parameter 'Aloha.host[0].iaTime' (unassigned):" -- in module (aloha::Host) Aloha.host[0] (id=3), during network setup

End.

即使从 INET 运行不同的示例,从示例来看,adhoc 似乎也会出现类似的错误,如下所示:

Preparing for running configuration General, run #0...
Assigned runID=General-0-20201223-00:37:38-95889
Setting up network "Net80211"...

<!> Error: The simulation wanted to ask a question, set cmdenv-interactive=true to allow it: "Enter parameter 'Net80211.numHosts' (unassigned):" -- in module (omnetpp::cModule) Net80211 (id=1), during network setup

End.

Simulation terminated with exit code: 1

我确实在配置文件中设置了 cmdenv-intercative=true 但错误并没有消失。

如果您需要任何其他信息,请告诉我。任何帮助、指导或指向某些资源的指示将不胜感激,并且将非常有帮助。

omnet++ inet
2个回答
0
投票

您需要为 [General] 部分设置“cmdenv-intercative=true”。


0
投票

我面临着你首先发布的同样的问题。您在哪个文件中设置了“cmdenv-intercative=true”。文件的名称、扩展名和位置是什么?你到底在哪里添加的?

© www.soinside.com 2019 - 2024. All rights reserved.