我要评分
获取效率
正确性
完整性
易理解

-fcommon

In the open-source GCC 12.3 version, the -fcommon option is changed to -fno-common by default. When the -fno-common option is enabled and a global variable with the same name exists, the error message "multiple definition" is displayed during compilation.

Solution: Change the name of the global variable or add the -fcommon option.