首页 > 解决方案 > 错误:至少需要 OMNeT++/OMNEST 版本 5.4.1 (Windows 10)

问题描述

我尝试在 Windows 10 上使用 OMNET 5.4.1 安装 INET4.0.0。我有很多错误。

In file included from inet/applications/ethernet/EtherAppClient.cc:22:
In file included from .\inet/applications/ethernet/EtherAppClient.h:21:
.\inet/common/INETDefs.h:45:4: error: At least OMNeT++/OMNEST version 5.4.1 required
#  error At least OMNeT++/OMNEST version 5.4.1 required
   ^
make[1]: *** [Makefile:1554: ../out/clang-debug/src/inet/applications/base/ApplicationPacketSerializer.o] Error 1
In file included from inet/applications/ethernet/EtherAppServer.cc:21:
In file included from .\inet/applications/ethernet/EtherAppServer.h:21:
.\inet/common/INETDefs.h:45:4: error: At least OMNeT++/OMNEST version 5.4.1 required
#  error At least OMNeT++/OMNEST version 5.4.1 required
   ^
In file included from inet/applications/ethernet/EthernetApplication.cc:14:
In file included from .\inet/applications/ethernet/EtherApp_m.h:37:
In file included from .\inet/common/INETDefs_m.h:33:
.\inet/common/INETDefs.h:45:4: error: At least OMNeT++/OMNEST version 5.4.1 required
#  error At least OMNeT++/OMNEST version 5.4.1 required
   ^
1 error generated.
make[1]: *** [Makefile:1554: ../out/clang-debug/src/inet/applications/dhcp/DhcpServer.o] Error 1
1 error generated.
make[1]: *** [Makefile:1554: ../out/clang-debug/src/inet/applications/dhcp/DhcpClient.o] Error 1
1 error generated.
make[1]: *** [Makefile:1554: ../out/clang-debug/src/inet/applications/ethernet/EtherAppClient.o] Error 1
1 error generated.
make[1]: *** [Makefile:1554: ../out/clang-debug/src/inet/applications/ethernet/EtherAppServer.o] Error 1
1 error generated.
make[1]: *** [Makefile:1554: ../out/clang-debug/src/inet/applications/ethernet/EthernetApplication.o] Error 1
make[1]: Leaving directory '/d/omnetpp-5.4/samples/inet4/src'
make: *** [Makefile:6: all] Error 2

这是由于#define OMNETPP_BUILDNUM 1019。当 OMNETPP_BUILDNUM < 1020 时,Inet 会出错。

请帮我解决问题。

谢谢。

问候, Thiha Kyaw

标签: omnet++

解决方案


您没有使用 OMNeT++ 5.4.1,而是仅使用 omnet 5.4。在OMNETPP_BUILDNUM5.4.1 版本中是 1020。检查您是否确实更新并使用了最新版本。


推荐阅读