MOMNET++致命错误:'Inet /.../ sometsing.h'文件找不到 我正在尝试从Omnet ++ 5.7中的Windows 10/11创建一个新项目(右键单击第一个项目 - > properties-> properties-> project references->标记INET),但它失败了

问题描述 投票:0回答:0
这是我的错误:

23:26:01 **** Incremental Build of configuration release for project project **** make MODE=release all cd src && /usr/bin/make make[1]: Entering directory '/c/Users/cyb/Desktop/omnetpp-5.7/samples/project/src' gpsr/Gpsr.cc In file included from gpsr/Gpsr.cc:22: gpsr/Gpsr.h:23:10: fatal error: 'inet/common/INETDefs.h' file not found #include "inet/common/INETDefs.h" ^~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make[1]: *** [Makefile:112: ../out/clang-release/src/gpsr/Gpsr.o] Error 1 make[1]: Leaving directory '/c/Users/cyb/Desktop/omnetpp-5.7/samples/project/src' make: *** [Makefile:2: all] Error 2 "make MODE=release all" terminated with exit code 2. Build might be incomplete. 23:26:04 Build Failed. 3 errors, 0 warnings. (took 2s.194ms)
我已经尝试重新创建一个新的“ makemake”文件,但是仍然会发生此错误。
我还尝试了我在此处找到的建议

OMNET++ INET :: ETHETHAPPCLI找不到

,在这里
OMNET++致命错误:'inet/common/common/inetdefs.h'文件找不到。当我从0创建一个新项目时,即使我使用了其他版本的Omnet ++/Inet(我尝试过Omnet 4,5和6)或O.S(例如Windows或Linux),也会发生同样的错误。有人可以帮我吗?
    

您应该走这条路: 右键单击您的项目 - >属性 - > Omnet ++-> MakeMake->单击SRC->选项 - > compile Tab->启用“添加添加从引用项目导出的路径”。 我希望这很有用

c++ omnet++ inet
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.