new class not found

9 views
Skip to first unread message

g123

unread,
Jul 1, 2009, 3:19:27 AM7/1/09
to omnetpp
I added new class "NewMgmtSTA" and I try to simulate a scenario with 2
stations: when running omnetpp.ini an error occured:
"Error in module (cCompoundModule) wlan.host[0]
(id=14):Class"newMgmtSTA" 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()."
I work with omnet4.0 under fedora
please how can I silve this problem.
I tried examples of inet and it work well
Thanks.

Alfonso Ariza

unread,
Jul 1, 2009, 3:50:58 AM7/1/09
to omn...@googlegroups.com

Have you rebuilt the makefile and recompile all the code?

--------------------------------------------------
From: "g123" <tahani...@gmail.com>
Sent: Wednesday, July 01, 2009 9:19 AM
To: "omnetpp" <omn...@googlegroups.com>
Subject: [Omnetpp-l] new class not found

g123

unread,
Jul 1, 2009, 3:55:37 AM7/1/09
to omnetpp


I have rebuilt all the project, and It is right
I have to modify any thing else?
thanks for help

Alfonso Ariza

unread,
Jul 1, 2009, 4:08:25 AM7/1/09
to omn...@googlegroups.com
The most common cause of not found a class

Compilation, it's recommended to recompile the entire project and regenerate
all the makefiles. But if you say that you have rebuilt the entire project
you shouldn't have problems with this.

The code doesn't include the macro Define_Module

An errors with the capital letters.


--------------------------------------------------
From: "g123" <tahani...@gmail.com>
Sent: Wednesday, July 01, 2009 9:55 AM
To: "omnetpp" <omn...@googlegroups.com>
Subject: [Omnetpp-l] Re: new class not found

g123

unread,
Jul 1, 2009, 4:14:23 AM7/1/09
to omnetpp


Sorry, but how can I solve the problem ?
thanks.

Alfonso Ariza

unread,
Jul 1, 2009, 4:18:19 AM7/1/09
to omn...@googlegroups.com

Have you verify that your cc file has the macro Define_Module with the name
of your class?
Have you verify that the name in the ned file is the same that the name used
in the macro Define_Module? Remember that is case sensitive


--------------------------------------------------
From: "g123" <tahani...@gmail.com>
Sent: Wednesday, July 01, 2009 10:14 AM
To: "omnetpp" <omn...@googlegroups.com>
Subject: [Omnetpp-l] Re: new class not found

>
>
>

g123

unread,
Jul 1, 2009, 4:43:12 AM7/1/09
to omnetpp

Yes I don't pay attention thanks a lot alfonso for your assistance.
Sorry for stupid question.
Reply all
Reply to author
Forward
0 new messages