Hi,
I’ve tried to compile the CUDA example given on NVIDIA webpage. I have the following error :
nvmex -f nvmexopts.bat Szeta.cu -I’C:\Program Files\CUDA\Toolkit\include’ -L’C:\Program Files\CUDA\Toolkit\lib’ -lcufft -lcudart
Szeta.cu
“C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\wtime.inl”, line 50: warning:
function “_wctime64” (declared at line 257 of “C:\Program
Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h”) was declared
“deprecated (“This function or variable may be unsafe. Consider
using _wctime64_s instead. To disable deprecation, use
_CRT_SECURE_NO_DEPRECATE. See online help for details.”)”
return _wctime64(_Time);
^
“c:\program files\cuda\toolkit\include\common_functions.h”, line 55: warning:
dllexport/dllimport conflict with “clock” (declared at line 176 of
“C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h”);
dllimport/dllexport dropped
extern __declspec(host) __declspec(device) clock_t clock(void) ;
^
tmpxft_00000ec0_00000000-3.gpu
tmpxft_00000ec0_00000000-7.gpu
tmpxft_00000ec0_00000000-3.c
Microsoft ® Incremental Linker Version 8.00.50727.42
Copyright © Microsoft Corporation. All rights reserved.
C:\DOCUME~1\V\LOCALS~1\Temp\mex_C5286ADC-648B-4AE9-9BBB-23D44BFBED57\Szeta.obj
LINK : fatal error LNK1181: impossible d’ouvrir le fichier en entrée ‘user32.lib’
C:\PROGRA~1\MATLAB\R2007B\BIN\NVMEX.PL: Error: Link of ‘Szeta.mexw32’ failed.
??? Error using ==> nvmex at 206
Unable to complete successfully.
Please help me :)
Thx
PS : I use Visual Studio 2005 Express Edition