# Problem compiling samples

**URL:** <https://forums.developer.nvidia.com/t/problem-compiling-samples/17871>\
**Category:** CUDA Programming and Performance\
**Created:** [July 22, 2010, 11:39am UTC](https://forums.developer.nvidia.com/t/problem-compiling-samples/17871 "2010-07-22T11:39:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jordi.img](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Jordi.img](https://forums.developer.nvidia.com/u/Jordi.img)\
**Post date:** [July 22, 2010, 11:39am UTC](https://forums.developer.nvidia.com/t/problem-compiling-samples/17871/1 "2010-07-22T11:39:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jordi.img](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Jordi.img](https://forums.developer.nvidia.com/u/Jordi.img)\
**Post date:** [July 22, 2010, 2:06pm UTC](https://forums.developer.nvidia.com/t/problem-compiling-samples/17871/2 "2010-07-22T14:06:13Z")

</div>

I recompiled the shrUtils library in the shader directory and everything seems to work now (there was a similar problem in the OpenCL forum)
