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

上一篇:SyntaxError异常


下一篇:第十八章 计算机取证