VS 2010 with 4.0 RC2.

Getting the following error building the BandWidthTest SDK sample:

1>LINK : fatal error LNK1104: cannot open file ‘cutil64D.lib’

Running Vista 64 and CUDA 4.0, I’ve set the target platform to 64 bit under the Properties–> CUDA C/C++ —> Common —> Target Machine Platform. The build configuration is set to 4.0 for the project.

I’ve checked and under the additional dependencies in the linker input, it does include cutil64D.lib.

Any ideas what I’m missing on? I know I’m forgetting one or two things, just can’t remember what.

PS. I am using a trial version of VS 2010 Ultimate, I will have to go back to express when the trial is over.

Hi!

You might have to explicitely specify where to find the libs:

Additional Library Directories: $(NVSDKCOMPUTE_ROOT)\CUDALibraries\common\lib$(PlatformName)

which expands to
C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\CUDALibraries\common\lib\x64
on my system, using an environment variable I defined myself.

In addition I had to copy the cutil64.dll to the same directory where the final executable resides, otherwise the exec could not find the DLL.
Or you have to “install” the dll, but I have no idea how to do this on Windows7 etc.

It would be nice if the SDK came with a runtime redistributable environment you could explicitely install/update analogous to the C++ Runtime Redistributable for Visual C++ ?!

regards Rolf

Thanks to NVIDIA :wallbash: you need to compile the libs and copy some missing files.

Look here:

http://forums.nvidia.com/index.php?showtopic=205733