I'm trying to build a Cuda project under visual studio 2008, and the linker complains:
unresolved external symbol _cudaGetErrorString@4 referenced in function "void __cdecl checkError
unresolved external symbol _cudaMemcpy@16 referenced in function "void __cdecl regression
unresolved external symbol _cudaMalloc@8 referenced in function "void __cdecl regressionunresolved external symbol _cudaSetDevice@4 referenced in function "void __cdecl Init
So obviously it can't find those functions, however I believe these functions are in the cudart.lib file that is included in Properties -> Linker -> Input -> Additional Dependencies
If I change the filename, either in the include dialog or on the actual file, I get an error message about the file not being found, so normally it is indeed used.
Someone else has the problem here: http://forums.nvidia.com/index.php?showtopic=103796
but solves it by linking to cudart.lib.
Is there a way to scan libraries for these functions so I can find where they are defined?
On linux I can find a cudaMalloc in libcudart.so with:
find . | grep so$ | while read file; do echo $file; strings $file | grep Malloc; done
Is there a tool that can do something similar in windows?