Subject: Re: [boost] [Locale] Boost.Locale cannot Run in Visual Studio 2010
From: Sarvagya Pant (sarvagya.pant_at_[hidden])
Date: 2015-03-30 00:26:33
Adding BOOST_ALL_DYN_LINK in preprocessor fixed the issue. Thank you for
giving the hint on this.
On Sun, Mar 29, 2015 at 8:04 PM, Artyom Beilis <artyomtnk_at_[hidden]> wrote:
> >I have been trying to learn Boost.Locale Module. Consider this
> >example. The code gets successfully compiled but when I try to run it, it
> >gives the error
> >Unhandled exception at 0x74d34b32 in LearningCPP.exe: Microsoft C++
> >exception: std::bad_cast at memory location 0x00a6fa48..
> >I have attached the stack-trace of the program also. Here it is:
> > [snip]
> > Did anyone faced this issue when using Boost.Locale in Visual Studio
> > If so, how do I resolve this issue?
> 1. Do you use latest version of MSVC or public beta (there was facet
> related bug there)2. Make sure you don't mix debug and release code (which
> can be very likely stuff there) on both boost and its dependencies (icu if
> you use one)
> Artyom Beilis
> CppCMS - C++ Web Framework: http://cppcms.com/
> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk