Try to create new project with INET reference, got : “unexpected NAME, expecting $end” in .msg file

一世执手 提交于 2019-12-11 06:15:15

问题


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?


回答1:


INET 4.X uses a new version of message compiler. But OMNeT++ by default sets in new project the old one.
In your project go to Properties, select OMNeT++ | Makemake | src folder | Options... | Custom and add the following line:

MSGC:=$(MSGC) --msg6


来源:https://stackoverflow.com/questions/56005709/try-to-create-new-project-with-inet-reference-got-unexpected-name-expecting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!