Search code examples
omnet++inet

how to import packages in omnetpp?


I downloaded the INET library from the following link : https://inet.omnetpp.org/Download.html and now I am trying to use INET modules in my project. I imported the INET project and then i am importing the packages but they are giving me errors. Can you tell me why? I tried these : import inet.networklayer.autorouting.ipv4.FlatNetworkConfigurator; import inet.nodes.inet.Router; import inet.nodes.inet.StandardHost;

I also tried this instead import inet.src.inet.node.inet.StandardHost;


Solution

  • There is not enough information to answer this with certainty, but my guess is that your own modules are in a separate project. In this case you have to reference the INET project from your own project (Right click on your project/ Properties / Project references / click the INET project)