INET - error in module...

1,486 views
Skip to first unread message

thomass

unread,
Jan 25, 2012, 12:14:00 PM1/25/12
to omnetpp
Hello,

I have a problem. I can´t start any INET samples.........please help
me

Thanks for advices

Error in module (cCompoundModule) ARPTest (id=1) during network setup:
Class "EtherBus" 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().

or

Error in module (cCompoundModule) MixedLAN (id=1) during network
setup: Class "ChannelInstaller" 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().

or

Error in module (cCompoundModule) MulticastNetwork.host1 (id=2) during
network setup: Class "NAMTraceWriter" 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().


Andras Varga

unread,
Jan 25, 2012, 12:23:40 PM1/25/12
to omn...@googlegroups.com
There was a bug that caused similar symptoms which was fixed in OMNeT++ 4.2;
it occurred when a model was compiled for a release-mode shared library and
run with opp_run. If it's that bug, compiling in debug mode or upgrading for
4.2.1 will solve it.

Andras

> --
> Sent from the OMNeT++ mailing list. To configure your membership,
> visit http://groups.google.com/group/omnetpp

thomass

unread,
Jan 25, 2012, 12:40:59 PM1/25/12
to omnetpp
But I already have omnet ++ 4.2...

I tried update but it doesn´t work.....No repository found at
http://omnetpp.org......

Rudolf Hornig

unread,
Jan 26, 2012, 5:58:59 AM1/26/12
to omn...@googlegroups.com
Was the INET build successful? What operating system/version are you using? Are you building in release or debug modeThere could be several reasons why the classes are missing.

Rudolf

Sandra Cespedes

unread,
May 3, 2012, 6:29:34 PM5/3/12
to omn...@googlegroups.com
Hello

I am experiencing a similar problem. I'm running Mixnet with MiXim version 2.1 and the Inet branch for Mixnet, Omnet version is 4.1.  I have a project that is using the libraries from MiXiM, Mixnet and Inet, and it compiles without any problem. I can even run simulations from the IDE. However, when I try to run a batch from mingw, it shows the following error:

<!> Error in module (cCompoundModule) mapmip.vehicle (id=5) during network setup
: Class "LinearMobility" 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 ch
annels, with Define_Module()/Define_Channel().

I checked that the libraries are being linked when compiling my project, so I think that's not the problem. Perhaps this is related to the bug you mentioned before about release/debug mode. I checked and all the projects I'm using are built in debug mode. Could you please tell me how to fix it so I can run the simulations from mingw? At the moment I can't upgrade the version of Omnet because I have other things running with the 4.1 and I still need them, so a fix for the current versions will be much appreciated!

Thanks in advance.
Sandra.

ware...@fau.edu

unread,
Mar 13, 2013, 8:55:13 PM3/13/13
to omn...@googlegroups.com
I had this problem recently. I am using v-4.2.2 and tried many of the different solutions presented in different threads for this topic but none worked, one of the best posted in https://groups.google.com/forum/#!msg/omnetpp/a2ekdRgO8-o/M0RrgM3WzJsJ.

The work around I found for the problem was:

  1. Copy and paste all the project folders from the work-space into a temporary location.
  2. Delete the folder omnetpp-4.2.2
  3. Re-install Omnetpp
  4. Copy and paste the projects back to the work-space
  5. Create projects with the original names
  6. Build-All

This was a desperate solution, I am sure there most be something easier but this solution solved my problem 

Wilmer

Hooman Reisi

unread,
Jun 4, 2013, 11:20:24 PM6/4/13
to omn...@googlegroups.com
Hey Ware,
 
 
This is not a solution man! I have done the same thing and got this error. Unless I change the way I am installing omnet, this is not going to help.
 
Hooman

Sarwar

unread,
May 29, 2014, 9:32:15 AM5/29/14
to omn...@googlegroups.com
Hello,

I implemented some interactions in omnet4.1 last year.
Now i want to switich to the omnetpp 4.4.1. Copy the src and NEDTEST, it gives me the same error. i tried different ways, but still facing the same error. Can anyone help me....

Thanks for your time and response.



2013년 6월 5일 수요일 오후 12시 20분 24초 UTC+9, Hooman Reisi 님의 말:

Navin Thapa

unread,
May 3, 2017, 2:58:37 AM5/3/17
to OMNeT++ Users
i m getting this error while establishing a network with 30 nodes.
please help.

Error in module (cModule) net (id=1) during network setup: (cGate)net.node.out: connectTo(): gate already connected, at /home/neo/Downloads/omnetpp-4.6/samples/SybilDefense/net.ned:304.


Reply all
Reply to author
Forward
0 new messages