Replies: 1 comment 2 replies
-
The easier is to include your source code model directly in inet-framework tree. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m working on a project where I’m trying to track the power consumption of some bulbs and implement an optimization algorithm for them.
However, I’ve run into an error:

Basically, I wanted to create a library where I can define a getter and setter for PowerConsumption.
I initially tried to use AlternatingEpEnergyConsumer, but I realized it doesn’t implement the required functions. I then attempted to extend the class and add the functions myself, but I couldn’t get the INET library to compile with the new .o files.
So I decided to create a new class called CustomEnergyConsumer in my own project.

Everything compiles fine and the project builds successfully. However, when I open the OMNeT++ GUI and load the simulation, I get the error shown in the first screenshot above.
Here’s what I’ve done:
nm out/clang-release/RomanescuPark.exe | grep CustomEnergyConsumer
Do you have any ideas on how I can fix this issue? I can provide more details if needed.
Also, if anyone has a working example where they’ve successfully extended an INET 4.5 class or created a custom one, I’d really appreciate it if you could share some code or tips.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions