总结了网络上能搜寻到的解决方案,供参考。
1. 编译器问题1:如果在电脑中已经安装了mingw,会冲突,因为新版omnetpp/tools中已经默认包含了。
解决:删除卸载原有mingw。
这是我的问题,已解决。
还有一些其他可能造成报错的原因,如下:
2. 编译器问题2:
“在windows平台下,有些库只支持gcc编译,在configure.user配置文件下
修改 CC=gcc CXX=g++ ,屏蔽掉PREFER_CLANG=yes
重新安装omnet++,后在编译。”
参考用户voevie回答。
3. dll加载错误:
“Finally I solved this problem by using Process Monitor to analyse what dll it loaded. Left side is not working and right side is woking fine in a virtual machine.
I found the difference is the final DLL it loaded is libeay32.dll, from SYSTEM32, and then crashed. And in the working VM it loads from omnet++ own folder, and continue loads others dll.
So I found a wrong version of libeay32.dll in system32 and it is installed by other software. This is a OpenSSL d