LNK error while building code.. i am getting LNK2005:error while bulding code..but cant figure it ou

Hello,

i am facing this problem while compling code in VS2008.

i have a file A.cu and B.cu

B.cu has some cuda function defined in it.
these functions are called from A.cu file.
i have included b.cu in a.cu file as #include “B.cu”.
but when i compile it gives me “A.cu.obj: error:LNK2005:…that the functions in B.cu is already defined in B.cu”

i didnt understand what am i doing wrong.
someone guide me.

Thanks
Amature