问题描述
我想通过Cmdenv运行我的项目.在项目的omnetpp.ini文件中,我将ned-path专门化为:ned-path =/omnetpp-4.6/samples/VDLM4net;/omnetpp-4.6/samples/MiXiM/src/base;/omnetpp-4.6/samples/MiXiM/src /模块当我尝试使用Cmdenv时,出现错误:控制台错误我在Windows上使用omnetpp-4.6,并将独立项目引用到MiXiM-2.3
I want to run my project through Cmdenv. In the project's omnetpp.ini file I specialized ned-path as: ned-path = /omnetpp-4.6/samples/VDLM4net;/omnetpp-4.6/samples/MiXiM/src/base;/omnetpp-4.6/samples/MiXiM/src/modulesAnd when I'm trying to use Cmdenv there is an error:error in consoleI'm using omnetpp-4.6 on Windows with standalone project referenced to MiXiM-2.3
推荐答案
我解决了我的问题.首先,在.ini文件中,我指定了所有可能在项目中可能使用的ned路径.就我而言,它看起来像这样:ned-path =.; ../MiXiM/examples; ../MiXiM/src/base; ../MiXiM/src/inet_stub; ../MiXiM/src/module s.之后,在命令行中,我写了:./VDLM4net -u Cmdenv -l ../MiXiM/src/mixim因此,我另外指定了MiXiM共享库.现在一切正常.
I solved my problem. At first, in .ini file I specified all possible ned paths than potentially can be used in project. In my case it is look like this: ned-path = .;../MiXiM/examples;../MiXiM/src/base;../MiXiM/src/inet_stub;../MiXiM/src/modules . After it, in command line I wrote: ./VDLM4net -u Cmdenv -l ../MiXiM/src/mixim So, additionally, I specified the MiXiM shared liabrary. All works fine now.
这篇关于由于缺少基本类型或接口,无法完全解析以下NED类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!