View Single Post
Old 2020-12-09, 03:33   #5
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·32·191 Posts
Default

Quote:
Originally Posted by mathwiz View Post
Possibly helpful? https://gcc.gnu.org/gcc-10/porting_to.html

"A common mistake in C is omitting extern when declaring a global variable in a header file. If the header is included by several files it results in multiple definitions of the same variable. In previous GCC versions this error is ignored. GCC 10 defaults to -fno-common, which means a linker error will now be reported. To fix this, use extern in header files when declaring global variables, and ensure each global is defined in exactly one C file."
Yeah, I'd say that explains it exactly. Looks like I have some work to do... in the meantime hopefully building with an earlier version of gcc is a workaround.
bsquared is offline   Reply With Quote