Getting Class not found Error when adding a new Simple Module

789 views
Skip to first unread message

Sipra Behera

unread,
Sep 12, 2017, 2:07:13 AM9/12/17
to OMNeT++ Users

hi all,

I am taking help of INET for my project. I have added a new pathloss module (a simple module with .ned, .cc and .h file) TO INET module. Also my build process with newly added pathloss module is successful. But when using the same pathloss module in my project i am getting the following error:
<!> Error in module (inet::physicallayer::RadioMedium) MANET.radioMedium (id=3) during network setup: Class "inet::physicallayer::TataIndoorPathLoss" 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().

can anybody help me with this?

 

Alfonso Ariza Quintana

unread,
Sep 12, 2017, 1:48:29 PM9/12/17
to omn...@googlegroups.com

Check the namespaces, the route of your module must be inside the namespace inet::physicallayer

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Sipra Behera

unread,
Sep 12, 2017, 2:47:02 PM9/12/17
to omn...@googlegroups.com
Yes I tried with that also. My .cc and .h file using namespaces of inet and physicallayer. so I tried giving @class(inet::physically re::TataIndoorPathLoss) in my .ned file. But still getting the same error.

On 12-Sep-2017 11:18 pm, "Alfonso Ariza Quintana" <aari...@hotmail.com> wrote:

Check the namespaces, the route of your module must be inside the namespace inet::physicallayer

 

 

De: omn...@googlegroups.com [mailto:omnetpp@googlegroups.com] En nombre de Sipra Behera
Enviado el: martes, 12 de septiembre de 2017 8:07
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Getting Class not found Error when adding a new Simple Module

 


hi all,

I am taking help of INET for my project. I have added a new pathloss module (a simple module with .ned, .cc and .h file) TO INET module. Also my build process with newly added pathloss module is successful. But when using the same pathloss module in my project i am getting the following error:
<!> Error in module (inet::physicallayer::RadioMedium) MANET.radioMedium (id=3) during network setup: Class "inet::physicallayer::TataIndoorPathLoss" 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().

can anybody help me with this?

 

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/snfG6XiHp2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+unsubscribe@googlegroups.com.

nithin puranik

unread,
Jan 5, 2018, 9:52:17 AM1/5/18
to OMNeT++ Users

Hello,

Did you find a solution for this?

I am also facing a similar problem. Do I need to edit the make file?
Reply all
Reply to author
Forward
0 new messages