I created a project which contains my linklayer and simulation source code. This project has INET as the project reference.
At build time, I got this error:
Error: syntax error, unexpected NAME, expecting $end
It comes from the message file (which contains types of messages):
import inet.common.INETDefs;
My message file is very similar to the Bmac message file (also tried with Bmac, got the same error).
Any idea please?
INET 4.X
uses a new version of message compiler. ButOMNeT++
by default sets in new project the old one.In your project go to
Properties
, selectOMNeT++
|Makemake
| src folder |Options...
|Custom
and add the following line: