Sharing variable with *.CU file

I have header file (xxx) which contains following variable declarations:
REMOVED

Then I include “yyy” and define the variables in “yyy”:

REMOVED

However, when I compile I get below errors:
REMOVED

In “yyy” variable definitions are global. “yyy” is compiled along with “xxx” as part of the same project. I also have a third CUDA file, where I define them locally in a function, and this file gives no error at compilation. Any ideas what do I do wrong here?

Solved.