问题描述
我已经按照步骤一步一步地安装了Veins,但是当我尝试运行示例场景(最后一步)时,我遇到了以上错误.
I have followed step by step the tutorial to install Veins, but when I tried running the example scenario (final step) I ended up with the above error.
整个错误是:
由于错误调试为true,因此在上述异常上进行了陷阱 配置选项.您的调试器准备好了吗?
TRAPPING on the exception above, due to a debug-on-errors=true configuration option. Is your debugger ready?
模拟终止,退出代码:-2147483645工作目录: C:/Users/user/src/veins-4.3/examples/veins命令行: ../../../omnetpp-4.6/bin/opp_run.exe -r 0 -n.; ../../src/veins --tkenv-image-path = ../../images -l ../../src/veins omnetpp.ini
Simulation terminated with exit code: -2147483645 Working directory: C:/Users/user/src/veins-4.3/examples/veins Command line: ../../../omnetpp-4.6/bin/opp_run.exe -r 0 -n .;../../src/veins --tkenv-image-path=../../images -l ../../src/veins omnetpp.ini
我不认为我在教程中错过了一步,因为我已经尝试了两次.我没有做任何更改,我只是像机器人一样严格地遵循了本教程,所以我无法为MCVE提供比该教程更多的细节.
I don't think I have missed a step during the tutorial as I have tried it two times. I did not make any change in anything, I've just strictly followed the tutorial like a robot, so I cannot provide an MCVE with more details than the tutorial.
这是我正在使用的:-Windows 7 Pro 64位-SUMO 0.25.0 64位
Here is what I'm using:- Windows 7 Pro 64 bits- SUMO 0.25.0 64 bits
本教程的所有其他步骤都可以成功运行,直到完成最后一步.
All other steps of the tutorial successfully worked until the final step.
推荐答案
我认为通过OMNeT ++ IDE运行Veins时会发生此错误.或者,如果您使用GCC进行了编译(如果使用CLANG,则不会发生该错误)
I assume this error occurs when running Veins via the OMNeT++ IDE. Or, if you have compiled it with GCC (The error does not happen if you use CLANG)
有两种方法可以绕过此错误:
There are two ways to bypass this error:
- 在示例目录中使用
.run
作为可执行文件,该目录将调用veins/run
并包含所有必需的库:
- Use the
.run
as executable from your examples directory, which callsveins/run
and includes all the required libraries:
- 将
opp_run
用作可执行文件,并将动态库设置为libveins.so
所在的目录(通常为src/veins
)
- Use
opp_run
as executable and set dynamic libraries to the directory wherelibveins.so
is located (usuallysrc/veins
)
PS:回答@ChristopSommer问题:Veins::ObstacleControl
出现在opp_run -l src/veins -h classes
PS: to answer @ChristopSommer questions: Veins::ObstacleControl
appears in opp_run -l src/veins -h classes
这也可能是解决方案,但我从未测试过: Eclipse中的编译器标志
This could be a solution too, but I never tested it: Compiler flags in Eclipse
这篇关于类"Veins :: ObstacleControl"未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!