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