【发布时间】:2021-09-11 01:33:41
【问题描述】:
我想模拟一个包含 INET 引用的项目,但产生了以下错误。如何解决?
.
.
.
Creating executable: ../out/clang-debug/src/D2DCommunication_dbg
/usr/bin/ld: cannot find -lINET_dbg
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../out/clang-debug/src/D2DCommunication_dbg] Error 1
Makefile:109: recipe for target '../out/clang-debug/src/D2DCommunication_dbg' failed
make[1]: Leaving directory '/home/reza/omnetpp/omnetpp-5.6.1/samples/D2DCommunication/src'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.
19:24:15 Build Failed. 5 errors, 2 warnings. (took 6s.698ms)
【问题讨论】:
-
能否检查一下
libINET_dbg.so是否存在于INET 目录的src中? -
如何查看?(通过菜单)。其他一些依赖于Inet的项目,编译构建没有问题。
-
检查文件是否存在的方法有很多种。例如,打开控制台,进入有 INET 的目录,进入 src,输入
ls -al。或者打开图形资源管理器,将目录更改为您的 INET,转到 src 并检查您是否可以看到所需的文件。你可以使用find命令... -
我检查了 Inet 目录中的 src 文件夹,libINET.so 可用。问题应该存在于 D2DCommunication 项目中。
-
你能检查
libINET_dbg.so是否存在吗?