Closed jmdejong closed 4 years ago
With gcc 10 the linking fails because renderer is defined multiple times. Adding the extern keyword makes sure that the header only declares the variable without defining it. A definition for the variable is added in main.c
renderer
extern
Fixes #13.
Thank you for your contribution!
With gcc 10 the linking fails because
renderer
is defined multiple times. Adding theextern
keyword makes sure that the header only declares the variable without defining it. A definition for the variable is added in main.cFixes #13.