gpt4 book ai didi

networking - 在 omnetpp 中找不到类 "simpleModule"

转载 作者:行者123 更新时间:2023-12-04 18:00:56 24 4
gpt4 key购买 nike

我正在用 omnet++ 编写我自己的简单模块。

在 omnet IDE 中,我创建了三个简单的模块。

之后,我使用这些模块创建了一个“网络”。

它正在构建成功,但是每当我尝试模拟它时它都会显示

Error in module (cModule) NetworkTopologyOnly (id=1) during network setup: Class "mySimplemodule2" not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(), or in the case of modules and channels, with Define_Module()/Define_Channel().

我应该怎么做才能成功地使用我自己的简单模块进行模拟?

最佳答案

除了类或模块注册问题,这也可能是因为您没有实现其所有功能(如果您在 omnet++ 类中定义了任何非虚函数原型(prototype))。

关于networking - 在 omnetpp 中找不到类 "simpleModule",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35586147/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com