Hello,
I’m trying to start with cuda compilin the simples example I’ve found, deviceQuery, present in the latest cuda sdk, and I’m getting the following error straight out of the box:
Linking…
shrUtils32D.lib(shrUtils.obj) : warning LNK4075: ignoring ‘/EDITANDCONTINUE’ due to ‘/OPT:REF’ specification
shrUtils32D.lib(shrUtils.obj) : error LNK2019: unresolved external symbol “public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)” (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12 @ABV?$basic_string@DU?$char_traits@D@std@@V ?$allocator@D@2@@2 @@Z ) referenced in function “public: __thiscall std::_Locinfo::_Locinfo(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)” (??0_Locinfo@std@@QAE @ABV?$basic_string@DU?$char_traits@D@std@@V ?$allocator@D@2@@1 @@Z )
shrUtils32D.lib(cmd_arg_reader.obj) : error LNK2001: unresolved external symbol “public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)” (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12 @ABV?$basic_string@DU?$char_traits@D@std@@V ?$allocator@D@2@@2 @@Z )
…/…/bin/win32/Debug/deviceQuery.exe : fatal error LNK1120: 1 unresolved externals
Build Time 0:01
deviceQuery - 3 error(s), 1 warning(s)
The toolkit and the SDK come from:
http://developer.nvidia.com/object/cuda_3_1_downloads.html
also does the driver (which I suppose has nothing to do with the linker error)
Could somebody please help me? I have no idea what’s going on (all the samples have the same problem)
Thanks :)
edit: using vs2005, sp1
I recompiled the shrUtils library in the shader directory and everything seems to work now (there was a similar problem in the OpenCL forum)