在 omnetpp 中定义模块时出现问题
你好 我正在 omnet 中编写一个项目,但我坚持定义自己的模块。在 https://github.com/lbedogni/Basic-Broadcast-Simulation 上有完整代码。问题是我收到以下错误消息:
<!> Error in module (cCompoundModule) scenario.host[0] (id=4) at event
\#1, t=0: Class "basic::Flooding" 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().
但我通过 Define_Module()
定义了它。
我认为这可能是与包相关的问题,但没有找到解决方案。有什么想法吗?
谢谢
Hi
I'm writing a project in omnet, but I'm stuck on defining my own module. On https://github.com/lbedogni/Basic-Broadcast-Simulation there is the full code. The problem is that i get the following error message:
<!> Error in module (cCompoundModule) scenario.host[0] (id=4) at event
\#1, t=0: Class "basic::Flooding" 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().
But I defined it via Define_Module()
.
I think it could possibly be a package related problem, but didn't find a solution. Any idea?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太熟悉,不过来自package.ned
//指定这个文件夹的NED包
基本包;
// 模块 C++ 类的命名空间
@命名空间(基本);
@许可证(LGPL);
我猜你需要在基本命名空间中?
并且您的泛洪类未在基本命名空间内定义?
I am not familiar with it, but from package.ned
// designate the NED package of this folder
package basic;
// namespace of module C++ classes
@namespace(basic);
@license(LGPL);
you need to be in namespace basic I guess?
And you flooding class is not defined within namespace basic?