CUDA LNK1181 Can't open *.obj file. (MSVS2005) Error LNK1181. Can't open *.obj file.

I download project(CUDA Image blurring) from site http://www.codeproject.com/KB/graphics/blurringwithcuda.aspx.
After compiling I have errors (LNK1181, LNK2001). Help me solve this problem!

1>LINK : fatal error LNK1181: cannot open input file ‘.\Release\StackBlur_kernal.obj’
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(NVSDKCUDA_ROOT)
1>Build log was saved at “file://c:\Users\Vladimir\Documents\Visual Studio 2005\Projects\StackBlur\Release\BuildLog.htm”
1>StackBlur - 1 error(s), 0 warning(s)
2>Compiling resources…
2>Linking…
2>ChildView.obj : error LNK2001: unresolved external symbol _cudaHostAlloc@12
2>ChildView.obj : error LNK2001: unresolved external symbol _cudaFreeHost@4
2>utils.obj : error LNK2001: unresolved external symbol _cudaThreadExit@0
2>utils.obj : error LNK2001: unresolved external symbol _cudaGetLastError@0
2>utils.obj : error LNK2001: unresolved external symbol _cudaGetDeviceCount@4
2>utils.obj : error LNK2001: unresolved external symbol _cudaGetDeviceProperties@8
2>utils.obj : error LNK2001: unresolved external symbol _cudaSetDevice@4
2>utils.obj : error LNK2001: unresolved external symbol _cudaSetDeviceFlags@4
2>C:\Users\Vladimir\Documents\Visual Studio 2005\Projects\StackBlur\Release\Test.exe : fatal error LNK1120: 8 unresolved externals
2>Build log was saved at “file://c:\Users\Vladimir\Documents\Visual Studio 2005\Projects\StackBlur\Test\Release\BuildLog.htm”
2>Test - 9 error(s), 0 warning(s)

Hello Sir/Madam , I am extermely new to cuda. I dont know how to connect cuda with visual studio 2010 under windows7. can you please help me.

Look here:

http://blog.cuvilib.com/2011/02/24/how-to-run-cuda-in-visual-studio-2010/

Thanks for the reply sir/madam, but still i couldnt connect visual studio 2010 with cuda toolkit 4.0 … i got error like given below

1>------ Rebuild All started: Project: cudaTestVs2010, Configuration: Debug Win32 ------
1>
1> c:\Users\user\documents\visual studio 2010\Projects\cudaTestVs2010\cudaTestVs2010>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe” -ccbin “C:\Program Files\Microsoft vs2008\VC\bin” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include" -G0 --keep-dir “Debug” -maxrregcount=0 --machine 32 --compile -D_NEXUS_DEBUG -g -Xcompiler “/EHsc /nologo /Od /Zi /MDd " -o “Debug\firstProg.cu.obj” “c:\Users\user\documents\visual studio 2010\Projects\cudaTestVs2010\cudaTestVs2010\firstProg.cu” -clean
1> Compiling CUDA source file firstProg.cu…
1>
1> c:\Users\user\documents\visual studio 2010\Projects\cudaTestVs2010\cudaTestVs2010>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe” -gencode=arch=compute_10,code=“sm_10,compute_10” --use-local-env --cl-version 2008 -ccbin “C:\Program Files\Microsoft vs2008\VC\bin” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include” -G0 --keep-dir “Debug” -maxrregcount=0 --machine 32 --compile -D_NEXUS_DEBUG -g -Xcompiler "/EHsc /nologo /Od /Zi /MDd " -o “Debug\firstProg.cu.obj” “c:\Users\user\documents\visual studio 2010\Projects\cudaTestVs2010\cudaTestVs2010\firstProg.cu”
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(11241): warning : expression has no effect
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(12857): warning : expression has no effect
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winuser.h(11971): warning : signed bit field of length 1
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winuser.h(11972): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(680): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(681): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(682): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(683): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(684): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(685): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(686): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(687): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(688): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(689): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(690): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(691): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(692): warning : signed bit field of length 1
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(11241): warning : expression has no effect
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(12857): warning : expression has no effect
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winuser.h(11971): warning : signed bit field of length 1
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winuser.h(11972): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(680): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(681): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(682): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(683): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(684): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(685): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(686): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(687): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(688): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(689): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(690): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(691): warning : signed bit field of length 1
1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(692): warning : signed bit field of length 1
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objbase.h(240): error : identifier “IUnknown” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objbase.h(240): warning : expression has no effect
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.0.targets(357,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe” -gencode=arch=compute_10,code=“sm_10,compute_10” --use-local-env --cl-version 2008 -ccbin “C:\Program Files\Microsoft vs2008\VC\bin” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include” -G0 --keep-dir “Debug” -maxrregcount=0 --machine 32 --compile -D_NEXUS_DEBUG -g -Xcompiler “/EHsc /nologo /Od /Zi /MDd " -o “Debug\firstProg.cu.obj” “c:\Users\user\documents\visual studio 2010\Projects\cudaTestVs2010\cudaTestVs2010\firstProg.cu”” exited with code 2.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

i didnt understood the error . please help me.

am connecting cuda 4.0 and opencv 2.2 both in visual studio 2010 … whether it is possible? i connect both in vs2008 and i worked but i need to work on vs2010… please help me!