我尝试在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)
答案 0 :(得分:1)
您没有使用OMNeT ++ 5.4.1,而是仅使用omnet 5.4。 OMNETPP_BUILDNUM
在5.4.1版本中为1020。检查您是否确实已更新并使用最新版本。