[CUDA]shrUtils32D.lib(shrUtils.obj) : error LNK2019:...

error.>Linking...
3>oclUtils32D.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<char>,class std::allocator<char> > const &)"

 

To resolve this problem, one needs to rebuild shrUtils32/64(D).lib and oclUtils32/64(D).lib with VS2005.
For some reason it helps.

 

Most likely this is due to a newer Visual Studio version used to build the pre-compiled versions of these static libs that come along with OpenCL SDK distribution.
I believe a general rule should sound like this:
"Make sure all OpenCL libs are built with the Visual Studio version you are going to use for building your OpenCL application".

posted @ 2010-11-22 16:24  Chjun  阅读(915)  评论(0编辑  收藏  举报