I received this error:
Filename.cpp:54: multiple definition of `variable’
Filename.o: Filename.cpp:24: first defined here
Filename.o: In function `function()’:
I thought it was something with multiple includes. But it turned out that I should have used .c files instead of .cpp.
When I renamed all the files the error was gone.