Hi this is probably a stupid question but I don't know how to solve this after looking online. In a file which we will call filea.h
under project/a/aa/filea.h
I have a variable declared (global) bool is_testing = false;
.
In another file called fileb.c
under project/b/bb/fileb.c
I have the following:
#include <a/aa/filea.h>
...
int ex_func(void)
{
is_testing = true;
}
I am getting this error when I try to compile: filea.h:19: first defined here
. Does anyone know how to fix this?