Boost logo

Boost :

Subject: Re: [boost] Supporting boost 1.64 for Visual Studio 2017
From: Marc Glisse (marc.glisse_at_[hidden])
Date: 2017-04-23 08:10:07


On Sat, 22 Apr 2017, Evgen8 via Boost wrote:

> The "NuGet" system indicates that BC 2017 is supported.
> *boost_locale-vc141. Compiler: Visual Studio 2017. Platforms: Win32, x64.*
> But attempts to use this package end with nothing. Regardless of how I
> install the "boost_locale" - do I get the same result manually or using
> "NuGet"? Attempts to install it on another machine ran out the same. Is this
> a bug?
>
> /1>libboost_locale-vc141-mt-1_64.lib(generator.obj) : error LNK2001:
> unresolved external symbol "class boost::system::error_category const &
> __cdecl boost::system::system_category(void)"
> (?system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>libboost_locale-vc141-mt-1_64.lib(localization_backend.obj) : error
> LNK2001: unresolved external symbol "class boost::system::error_category
> const & __cdecl boost::system::system_category(void)"
> (?system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>libboost_locale-vc141-mt-1_64.lib(lcid.obj) : error LNK2001: unresolved
> external symbol "class boost::system::error_category const & __cdecl
> boost::system::system_category(void)"
> (?system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>libboost_locale-vc141-mt-1_64.lib(date_time.obj) : error LNK2001:
> unresolved external symbol "class boost::system::error_category const &
> __cdecl boost::system::system_category(void)"
> (?system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>libboost_locale-vc141-mt-1_64.lib(generator.obj) : error LNK2001:
> unresolved external symbol "class boost::system::error_category const &
> __cdecl boost::system::generic_category(void)"
> (?generic_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>libboost_locale-vc141-mt-1_64.lib(localization_backend.obj) : error
> LNK2001: unresolved external symbol "class boost::system::error_category
> const & __cdecl boost::system::generic_category(void)"
> (?generic_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>libboost_locale-vc141-mt-1_64.lib(lcid.obj) : error LNK2001: unresolved
> external symbol "class boost::system::error_category const & __cdecl
> boost::system::generic_category(void)"
> (?generic_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>libboost_locale-vc141-mt-1_64.lib(date_time.obj) : error LNK2001:
> unresolved external symbol "class boost::system::error_category const &
> __cdecl boost::system::generic_category(void)"
> (?generic_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>E:\Yandex.Disk\Projects\OS\Release\Devs.exe : fatal error LNK1120: 2
> unresolved externals/

When you get exactly those 2 missing symbols from boost system and only
those, this is usually caused by the deprecated code in boost system.
Please lobby the boost system maintainer so BOOST_SYSTEM_NO_DEPRECATED
becomes the default (or BOOST_ERROR_CODE_HEADER_ONLY, or anything that
avoids forcing people to link with it just for an unused, deprecated
definition).

-- 
Marc Glisse

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