0
votes

Is there a simple way to create a project, similar to inet>examples>lans, not under inet>examples>lans, but in a separate project and workspace? And what steps must I do for it?
I try to create my own model like the "Two hosts" one in a new project folder with project references to inet folder (with Omnet++ 5.1, Inet 3.6, Windows 7 pro 64 bits). There is no problem to create the ned file. The Etherhost underlying model with EtherAppCli and EtherAppServ are found in the ned file. I have no errors by building the project. But, I have always the error "Class "inet::EtherAppCli" not found" when I run the model. Can someone help me to solve this problem ?

Many Thanks

2

2 Answers

0
votes

Go to Project | Properties | OMNeT++ | Makemake | select your source dir, then Options... | Link tab and try to select Link with libraries from referenced projects.

0
votes

My advices for your problem are the following:

  1. Is there a folder named "Includes" is your project (you can see it in eclipse)? If no, create a new project in Eclipse New | Project | OMNeT++, and paste your files there. (You don't have to do this in the examples folder of inet.)

  2. Check if there is no any error when you make your project in the console. If there are any, they are often explicit. If there is no error:

    • in Eclipse, delete the "out" folder
    • in the console, go into your project directory and type opp_makemake -f (-f for force) and then make
    • in Eclipse, right click on your project and click on Build project
  3. Check that all the functions defined in EtherAppCli.h are implemented in EtherAppCli.cc

I hope that one of these solutions will solve the error.