项目构建中的构建错误具有 INET 参考

Build error in building of a project has the INET reference

我想模拟一个包含 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)

看来您在发布模式下构建了 INET,而引用 INET 的项目是在调试模式下构建的。但是,两个项目必须以相同的模式构建。
假设您需要调试模式,在 Eclipse 中右键单击 INET,选择 Build Configurations,然后选择 Set Active 和 select gcc-debugdebug.