CUDA example transpose failed to link

Hello!

I’ve got Win7 64bit and VS2008 and I tried to compile transpose example from CUDA SDK.
By default it searched for cutil32D.lib, but there is no such file in my CUDA SDK, only cutil64D.lib → I changed link options to cutil64D.lib.
Now it tells me that it can’t find some functions when linking (sorry for russian, I have only russian VS):
In what library could I find these functions? According to names in cutil*. What is the problem?

1>Компоновка…
1>LINK : warning LNK4098: библиотека по умолчанию “LIBCMTD” противоречит использованию других библиотек; используйте параметр /NODEFAULTLIB:library
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ _shrLogEx в функции “void __cdecl __shrExitEX(int,char const * *,int)” (?__shrExitEX@@YAXHPAPBDH@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ _shrCheckCmdLineFlag в функции “void __cdecl __shrExitEX(int,char const * *,int)” (?__shrExitEX@@YAXHPAPBDH@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutCheckCmdLineFlag@12 в функции “void __cdecl cutilDeviceInit(int,char * *)” (?cutilDeviceInit@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutGetCmdLineArgumenti@16 в функции “void __cdecl cutilDeviceInit(int,char * *)” (?cutilDeviceInit@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutDeleteTimer@4 в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutComparef@12 в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutResetTimer@4 в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutGetTimerValue@4 в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutStopTimer@4 в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutStartTimer@4 в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ _shrLog в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp__cutCreateTimer@4 в функции “void __cdecl runTest(int,char * *)” (?runTest@@YAXHPAPAD@Z)
1>transpose.cu.obj : error LNK2019: ссылка на неразрешенный внешний символ _shrSetLogFileName в функции _main
1>C:\Users/semyon/transpose/bin/win32/Debug/transpose.exe : fatal error LNK1120: 13 неразрешенных внешних элементов

Thanks, Semyon

Build the cutil project in the examples solution first (for 32bit debug or whatever you want) and make sure VS can find the lib (and the exe the dll, if applicable).

Build the cutil project in the examples solution first (for 32bit debug or whatever you want) and make sure VS can find the lib (and the exe the dll, if applicable).

Thanks a lot. It works.

Thanks a lot. It works.