【问题标题】:Problem in defining a module in omnetpp在 omnetpp 中定义模块的问题
【发布时间】:2010-12-08 08:28:24
【问题描述】:

嗨 我正在 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() 定义的。

我认为这可能是与包装相关的问题,但没有找到解决方案。有什么想法吗?

谢谢

【问题讨论】:

    标签: c++ packages simulation


    【解决方案1】:

    我不熟悉,来自package.ned

    //指定该文件夹的NED包 基本包;

    // 模块 C++ 类的命名空间 @命名空间(基本);

    @license(LGPL);

    我猜你需要在基本命名空间中?

    而且你的泛洪类没有在基本命名空间中定义?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-02
      相关资源
      最近更新 更多