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
2.NED文件中输入parameters:时显示错误syntax error, unexpected PARAMETERS, expecting '}'
解决办法:将前面的@display()放在parameters:后面
parameters:
int macaddress;
@display("i=device/device;bgb=489,298");

浙公网安备 33010602011771号