Class “simpleModule” not found in omnetpp

删除回忆录丶 提交于 2021-02-19 03:37:05

问题


I am writing my own simple modules in omnet++.

Inside the omnet IDE, I have created three simple modules.

After that I have created a "network" using those modules.

It is building successfully, but whenever I try to simulate it it shows

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().

What should I do to successfully simulate using my own simple modules?


回答1:


Other than class or module registering issues, this could also be caused when you have not implemented all its functions (if you have any non-virtual function prototype defined in your omnet++ class).



来源:https://stackoverflow.com/questions/35586147/class-simplemodule-not-found-in-omnetpp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!