1

我在用

  1. OMNET++ 5.4.1

  2. Libar 库版本 1.2

  3. clang 版本 5.0.1 (tags/RELEASE_501/final)

  4. 目标:x86_64-w64-windows-gnu

我对 VANET 的 AntColony 优化路由的实现很感兴趣。导入 Libara 库后:https ://github.com/des-testbed/libara

错误: 0:58: 48 **** 为项目 ARA-Simulation 构建配置 clang-debug ****

使模式=调试所有

编译 src/core/AbstractARAClient.cpp

clang++.exe:错误:目标“x86_64-w64-windows-gnu”不支持选项“-fPIC”

make: *** [Makefile:309: out/clang++-debug/src/core/AbstractARAClient.o] 错误 1

我认为在 Libara 的 makefile 中有一个标志 -fpic 导致了这个问题。

编译器选项

CFLAGS += -std=c++11 -fPIC

帮我解决这个问题。提前致谢。

4

0 回答 0