Using CUDA lib-files

I have a CUDA lib-file, libname.a, that I want to use. How do I do that?

If the lib-file is created in a 64-bit OS, must I also use a 64-bit OS to be able to use the lib-file?