CUDA fatal error LNK1104: cannot open file

I have been trying a multitude of solutions for at least 2 weeks now, but I have been able to solve most of my errors except for one that is really stubborn. The problem is this: I am using a sample provided by NVIDIA (matrixMul) and i sort of modified the coding a little bit by removing everything related to CUBLAS because I will come back to using that later. I am using Microsoft Visual C++ 2008 Express Edition using the driver build for CUDA 4.0 and I recieve the following error: fatal error LNK1104: cannot open file ‘.\Debug\matrixMul_gold.obj’

ive tried to use the command line to create an object file (the command I used was: cl /EHsc matrixMul_gold.cpp) and I copied the .obj file into the Debug directory, but when I attempt to build the solution, it somehow gets deleted. Any suggestions or adivce?

I’ll post the source code or any other information that is asked for.