我在Ubuntu 20.04.4上运行OMNET++5.6.2,我想利用C++20的功能。据我所知,这个版本的OMNET++使用C++11。如何更改OMNET++的C++编译器版本?
来源https://github.com/omnetpp/omnetpp/blob/master/configure.user.dist,第45行,上面写着
C++ specific compiler options. As OMNeT++ requires C++14 or later, this is
the place to specify -std=c++14 or a similar option if your compiler's default language compliance level is lower than C++14. These options will be used when compiling OMNeT++ and also when compiling simulation models.
您可以检查CXXFLAGS=-std=c++20