omnet问题
Posted crescental
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了omnet问题相关的知识,希望对你有一定的参考价值。
1.omnet ned文件中首行出现错误
Multiple markers at this line
- cannot read /SimpleSchedule/Base/Source/PTSrc.ned
- declared package "" does not match expected package "Base.Source"
- 49 changed lines
解决办法:在首行声明ned文件路径
Directories in a NED source tree correspond to packages. If NED files are in the <root>/a/b/c directory (where <root> is listed in NED path)在properities中设置, then the package name is a.b.c. The package name has to be explicitly declared at the top of the NED files as well, like this:package a.b.c;
where <b> is listed in NED path,则声明 package c
以上是关于omnet问题的主要内容,如果未能解决你的问题,请参考以下文章