如何在omnet中构建veves inet项目

问题描述 投票:0回答:1

当我尝试构建包括 Inet-4.2.2 Simu5G-1.1.0 和静脉-5.1 的 omnetpp 项目时,构建时会出现此错误:

Creating shared library: ../out/clang-release/src/libveins_inet.dll
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.rdata+0x7f8): undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::finish()'
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.rdata+0xc80): undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::init_traci()'
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.rdata+0x12e8): undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::~TraCIScenarioManagerLaunchd()'
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.rdata+0x12f0): undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::~TraCIScenarioManagerLaunchd()'
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.rdata+0x13d8): undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::initialize(int)'
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.rdata+0x13f0): undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::finish()'
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.rdata+0x1878): undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::init_traci()'
../out/clang-release/src/veins_inet/VeinsInetManager.o:(.text[_ZN5veins22SignalCallbackListenerIPN7omnetpp7cObjectEEC2ESt8functionIFvNS_13SignalPayloadIS3_EEEEPNS1_7cModuleEi]+0x25): undefined reference to `__imp__ZTVN5veins22SignalCallbackListenerIPN7omnetpp7cObjectEEE'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:136: ../out/clang-release/src/libveins_inet.dll] Error 1
make[1]: Leaving directory '/c/Users/hadil/OneDrive/Desktop/5G/veins_inet/src'
make: *** [Makefile:36: all] Error 2
"make MODE=release all" terminated with exit code 2. Build might be incomplete.

Simu5G 1.1.0 与 Inet 4.2.2 完美配合,但当我导入静脉和静脉 inet 时出现问题。

clang omnet++ veins inet
1个回答
0
投票

我相信 Simu5G 没有经过测试可以在 Windows 上用作库(即它不能被其他项目使用)。 Simu5G 本身可以在 Windows 上很好地编译和使用。

您将无法在 Windows 上轻松构建它。我建议将所有内容安装在 WSL 机器中并从那里运行所有内容。在 Linux 上你遇到的问题会少得多。我还建议尝试使用 opp_env

© www.soinside.com 2019 - 2024. All rights reserved.