OMNET++:未找到类 -- 可能代码未链接或类未注册 [英] OMNET++: Class not Found --perhaps code is not linked or the class was not registered

查看:56
本文介绍了OMNET++:未找到类 -- 可能代码未链接或类未注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用在另一个项目(NED 和 C++)中定义的其他模块.这是我得到的错误

I am trying to use other modules that are defined in another project (NED and C++). That's the error I got

NED 链接正确,但我的项目无法访问其他项目的 c++ (datarateSpectrum) 文件.

NED is linked correctly, but my project can not access the c++ (datarateSpectrum) files of the other project.

我尝试解决此问题的步骤如下:

The steps I went through trying to solve this issue are as follow:

  • 我确保包含define_module()

  • I made sure to include define_module()

我编辑了基本项目 makemake 以生成共享库,并将我的项目 makemake 与外部源链接.

I edited the basic project makemake to produce a shared library and my project makemake to be linked with external sources.

我能够看到我的项目能够访问其他项目库,但我仍然收到相同的错误消息.

I am able to see that my project is able to access the other project library however I still get the same error message.

非常感谢任何帮助

谢谢

推荐答案

当某些函数在 datarateSpectrum.h 中定义但未在 datarateSpectrum.cc 中实现时,可能会发生此错误.

This error can happen when some functions are defined in datarateSpectrum.h but not implemented in datarateSpectrum.cc.

这篇关于OMNET++:未找到类 -- 可能代码未链接或类未注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆