微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用Inet项目构建omnet ++时出错

如何解决使用Inet项目构建omnet ++时出错

当尝试使用带有inet的omnet ++构建项目时出现错误消息

15:56:39 **** Incremental Build of configuration release for project 
FirstProject ****
make MODE=release all 
cd src && /usr/bin/make
make[1]: Entering directory '/c/omnetpp-5.6.2/samples/FirstProject/src'
Creating executable: ../out/clang-release/src/FirstProject.exe
C:\omnetpp-5.6.2\tools\win64\mingw64\bin\ld: cannot find -lINET
clang++.exe: error: linker command Failed with exit code 1 (use -v to see 
invocation)
make[1]: *** [Makefile:101: ../out/clang-release/src/FirstProject.exe] 
Error 1
make[1]: Leaving directory '/c/omnetpp-5.6.2/samples/FirstProject/src'
make: *** [Makefile:2: all] Error 2
"make MODE=release all" terminated with exit code 2. Build might be 
incomplete.

15:56:40 Build Failed. 3 errors,0 warnings. (took 1s.125ms)

解决方法

您是否检查了FirstProject中是否正确引用了Inet? 右键单击第一个项目->属性->项目引用-> Mark Inet。 另一个原因可能是编译Inet时出错。

,

我通过安装clang,clang ++解决了这个问题

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。