Skip to content

Conversation

@tomcucinotta
Copy link

variables to be reused across different .c modules must be declared as 'extern' in header files, then defined (without 'extern') in the respective .c module files, otherwise you get them defined in multiple .o files and the linker complains

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant