Fix a linker error in ninja_test_hypre_parasails#3
Conversation
The symbol is defined as a global symbol in both object files. This error wasn't detect by gcc versions before 10.0.
|
@hainest: this looks good to me. One question: while the change looks good as it will improve global symbol management, I am curious by the comment:
What is the error? This conflicts with another global symbol in which case where does it come from? |
One comes from |
|
@hainest: make sense. Would that make sense to hide those other symbols into the file scope as well? |
|
Because C doesn't have namespaces, I tend to be conservative and give globals internal linkage. Currently, I don't see any other linker issues, but that doesn't guarantee there aren't any. |
|
Cool. I will accept the patch then. |
|
Thanks! |
The symbol is defined as a global symbol in both object files. This error wasn't detect by gcc versions before 10.0.
@dongahn This was detected as part of my work on the ECP Software Development Tools SDK.