作者:mobiledu2502890297 | 来源:互联网 | 2023-08-20 15:59
编译失败后,从cmake的errorlog中看到到:cc1plus:error:commandlineoption-Wbad-function-castisvalid
编译失败后,从cmake的errorlog中看到到:
cc1plus: error: command line option '-Wbad-function-cast' is valid for C/ObjC but not for C++ [-Werror]
cc1plus: error: unrecognized command line option '-Wno-ignored-attributes' [-Werror]
cc1plus: all warnings being treated as errors
gmake[1]: * [CMakeFiles/cmTC_591c4.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory `/usr/src/db/mariadb-10.1.10/CMakeFiles/CMakeTmp'
gmake: * [cmTC_591c4/fast] Error 2