尝试使用INET参考创建新项目,得到了“意外的名称,期望$ end".在.msg文件中 [英] Try to create new project with INET reference, got : "unexpected NAME, expecting $end" in .msg file
问题描述
我创建了一个项目,其中包含我的链接层和模拟源代码. 该项目以INET作为项目参考.
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:
错误:语法错误,名称意外,期望$ end
Error: syntax error, unexpected NAME, expecting $end
它来自消息文件(其中包含消息的类型):
It comes from the message file (which contains types of messages):
import inet.common.INETDefs;
我的消息文件与Bmac消息文件非常相似(也曾与Bmac一起尝试过,但出现了相同的错误).
My message file is very similar to the Bmac message file (also tried with Bmac, got the same error).
请问有什么主意吗?
推荐答案
INET 4.X
使用新版本的消息编译器.但是OMNeT++
默认在新项目中设置旧项目.
在您的项目中,转到Properties
,选择OMNeT++
|. Makemake
| src文件夹| Options...
| Custom
并添加以下行:
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
这篇关于尝试使用INET参考创建新项目,得到了“意外的名称,期望$ end".在.msg文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!