Error on windows64bit

I just installed CUDA 2.3 on Windows 64 bit and I get following several such errors when I try to compile the SDK. When it is a fresh install people expect it to be error free. But NVidia is so irresponsible that the default project release is set to Win32 inside Win64 build. I get following errors even after changing the config to x64. Can anyone help me with this?

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol free referenced in function main

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol malloc referenced in function main

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol printf referenced in function main

8>simplePitchLinearTexture.cu.obj : error LNK2001: unresolved external symbol _fltused

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol exit referenced in function “void __cdecl __cutilExit(int,char * *)” (?__cutilExit@@YAXHPEAPEAD@Z)

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol getchar referenced in function “void __cdecl __cutilExit(int,char * *)” (?__cutilExit@@YAXHPEAPEAD@Z)

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol fflush referenced in function “void __cdecl __cutilExit(int,char * *)” (?__cutilExit@@YAXHPEAPEAD@Z)

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol __iob_func referenced in function “void __cdecl __cutilExit(int,char * *)” (?__cutilExit@@YAXHPEAPEAD@Z)

8>simplePitchLinearTexture.cu.obj : error LNK2001: unresolved external symbol __GSHandlerCheck

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol __security_cookie referenced in function “int __cdecl cutGetMaxGflopsDeviceId(void)” (?cutGetMaxGflopsDeviceId@@YAHXZ)

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol __security_check_cookie referenced in function “int __cdecl cutGetMaxGflopsDeviceId(void)” (?cutGetMaxGflopsDeviceId@@YAHXZ)

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol fprintf referenced in function “void __cdecl __cudaSafeCall(enum cudaError,char const *,int)” (?__cudaSafeCall@@YAXW4cudaError@@PEBDH@Z)

8>simplePitchLinearTexture.cu.obj : error LNK2019: unresolved external symbol atexit referenced in function __sti____cudaRegisterAll_59_tmpxft_00001194_00000000_6_simpl
ePitchLinearTexture_cpp1_ii_texRefPL

8>LINK : error LNK2001: unresolved external symbol mainCRTStartup

Those are basic system functions which should be linked from standard libraries.

First, try to compile it as Win32 nevertheless. GPUs are 32-bit machines and they can only emulate 64-bit behaviour with some additional overhead.
Also check your project settings, unter the ‘Linker’ part. Do you see something suspicious, like ignoring standard libraries or something?

If you could point me which example you are trying to compile, maybe I could tell you more.

I have uploaded the file after compiling with 32 bit options

VC_90_error.zip (14.4 KB)

1>normalizedcrosscorr_M.cu.obj : error LNK2001: unresolved external symbol __cudaUnregisterFatBinary

1>differentiation.cu.obj : error LNK2019: unresolved external symbol __cudaUnregisterFatBinary referenced in function __cudaUnregisterBinaryUtil

1>matrix_io.cu.obj : error LNK2001: unresolved external symbol __cudaUnregisterFatBinary

1>median_filter.cu.obj : error LNK2001: unresolved external symbol __cudaUnregisterFatBinary

1>normalization.cu.obj : error LNK2001: unresolved external symbol __cudaUnregisterFatBinary

1>differentiation.cu.obj : error LNK2019: unresolved external symbol cudaLaunch referenced in function “enum cudaError __cdecl cudaLaunch(char *)” (??$cudaLaunch@D@@YA?AW4cudaError@@PEAD@Z)

1>median_filter.cu.obj : error LNK2001: unresolved external symbol cudaLaunch

1>normalization.cu.obj : error LNK2001: unresolved external symbol cudaLaunch

1>differentiation.cu.obj : error LNK2019: unresolved external symbol cudaSetupArgument referenced in function __device_stub__Z8st_LSQSEPfS_ii

1>median_filter.cu.obj : error LNK2001: unresolved external symbol cudaSetupArgument

1>normalization.cu.obj : error LNK2001: unresolved external symbol cudaSetupArgument

1>differentiation.cu.obj : error LNK2019: unresolved external symbol __cudaRegisterFunction referenced in function __sti____cudaRegisterAll_50_tmpxft_000017a0_00000000_6_diffe

rentiation_cpp1_ii_16e75709

1>median_filter.cu.obj : error LNK2001: unresolved external symbol __cudaRegisterFunction

1>normalization.cu.obj : error LNK2001: unresolved external symbol __cudaRegisterFunction

1>normalizedcrosscorr_M.cu.obj : error LNK2019: unresolved external symbol __cudaRegisterFatBinary referenced in function main

1>differentiation.cu.obj : error LNK2001: unresolved external symbol __cudaRegisterFatBinary

1>matrix_io.cu.obj : error LNK2001: unresolved external symbol __cudaRegisterFatBinary

1>median_filter.cu.obj : error LNK2001: unresolved external symbol __cudaRegisterFatBinary

1>normalization.cu.obj : error LNK2001: unresolved external symbol __cudaRegisterFatBinary

1>normalizedcrosscorr_M.cu.obj : error LNK2019: unresolved external symbol cudaThreadSynchronize referenced in function main

1>normalizedcrosscorr_M.cu.obj : error LNK2019: unresolved external symbol cudaConfigureCall referenced in function main

1>normalizedcrosscorr_M.cu.obj : error LNK2019: unresolved external symbol cudaMemcpy referenced in function main

1>normalizedcrosscorr_M.cu.obj : error LNK2019: unresolved external symbol cudaMalloc

Did you find the solution? I am also experiencing the same problem.

I installed CUDA 2.3 (64 bit version) on windows 7.

Its been a while since I tried the 64bit version. But, apart from the default 32 bit setting in the project settings, I do not recollect running into issues.
Just as a very basic suggestion - Did you install the ‘latest’ 64bit drivers for your respective hardware from the Drivers section? I am aware that you get the toolkit, sdk and a ‘cuda’ driver from the ‘Download Cuda’ page, but you might want to try installing the driver for your hardware from the drivers section on the nvidia website.