In the header file you're declaring the variables in the namespace. You need to only declare them with the extern
keyword:
namespace variab
{
extern int x;
extern float tpl;
// etc...
}
Then in a source file you do the definition:
namespace variab
{
int x;
float tpl;
// etc...
}