Boost logo

Boost :

Subject: [boost] [Locale] Link errors
From: Alexander Lamaison (awl03_at_[hidden])
Date: 2010-09-19 19:29:02


I'm getting link errors with the latest Boost.Locale (v2.91) when trying to
use the Win32 backend:

[ 34%] Building CXX object
CMakeFiles/boost_locale.dir/libs/locale/src/win32/win
_backend.cpp.obj
win_backend.cpp
Linking CXX shared library boost_locale.dll
   Creating library boost_locale.lib and object boost_locale.exp
win_backend.cpp.obj : error LNK2019: unresolved external symbol "unsigned
int __
cdecl boost::locale::impl_win::locale_to_lcid(class
std::basic_string<char,struc
t std::char_traits<char>,class std::allocator<char> > const &)"
(?locale_to_lcid
@impl_win_at_locale@boost@@YAIABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator
@D_at_2@@std@@@Z) referenced in function "public: __thiscall
boost::locale::impl_wi
n::winlocale::winlocale(class std::basic_string<char,struct
std::char_traits<cha
r>,class std::allocator<char> > const &)"
(??0winlocale_at_impl_win_at_locale@boost@@Q
AE_at_ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
boost_locale.dll : fatal error LNK1120: 1 unresolved externals

I configured CMake as such:

boost_locale_v2.91>cmake -G "NMake Makefiles" -DDISABLE_ICU=ON
-DDISABLE_STD_BACKEND=ON -DCMAKE_INCLUDE_PATH="C:\boost"

Where Boost is version 1.42. This is on Windows 7 32-bit.

Any ideas?

Alex

-- 
Easy SFTP for Windows Explorer (http://www.swish-sftp.org)

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk