Textures in several files?

I stumbled on a strange problem.
I have two .cu files, each of them compiled with different nvcc settings. I am succesfully using two texture objects in one of them and just tried to add a third one in another file.
As soon as I bind a new texture in the second file, even if I don’t use it at all in my kernels, the program crashes.

Any idea why?
Is there some strange limitation that you can use textures in only one file?
Is there some other strange limitation on other global device variables (const, device, etc.)?

CUDA has no linker–global device variables like that only exist within the current compilation unit.

I do not need that.
I have a texture in A.cu which I use in A.cu only, and texture in B.cu which I use in B.cu only.