Unable to declare variable in a library that doesn't have a class: multiple definition of the variable
In Lib.h you should declare an

extern int myVariable;


In Lib.cpp you can define it once

#include "Lib.h"
int myVariable=123;
...