Rate This Document
Findability
Accuracy
Completeness
Readability

-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.