我想模拟一个包含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
,再选择gcc-debug
或debug
。