Supporting boost 1.64 for Visual Studio 2017

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Supporting boost 1.64 for Visual Studio 2017

Evgen8
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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@12@XZ)
1>E:\Yandex.Disk\Projects\OS\Release\Devs.exe : fatal error LNK1120: 2 unresolved externals
Reply | Threaded
Open this post in threaded view
|

Re: Supporting boost 1.64 for Visual Studio 2017

Boost - Dev mailing list
On 04/22/17 20:29, 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)"

The missing symbols are from Boost.System. Since you're linking static
libraries, you'll have to specify Boost.Locale dependencies manually to
link with in your project.


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: Supporting boost 1.64 for Visual Studio 2017

Evgen8
This post has NOT been accepted by the mailing list yet.
How can i do this? There was always enough installation with NuGet...
Reply | Threaded
Open this post in threaded view
|

Re: Supporting boost 1.64 for Visual Studio 2017

Boost - Dev mailing list
In reply to this post by Boost - Dev mailing list
On 04/23/17 00:11, Nadtochiy Evgeniy wrote:

> 22.04.2017, 21:07, "Andrey Semashev" <[hidden email]>:
>>
>> On 04/22/17 20:29, 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)"
>>
>>
>> The missing symbols are from Boost.System. Since you're linking static
>> libraries, you'll have to specify Boost.Locale dependencies manually to
>> link with in your project.
>>
> How can i do this? There was always enough installation with NuGet...

I don't know what NuGet is or how it works, but the libraries to link
with are typically specified in VS project settings (look for the linker
parameters tab).

PS: Also, please, don't top post.


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: Supporting boost 1.64 for Visual Studio 2017

Boost - Dev mailing list
In reply to this post by Evgen8
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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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@system@boost@@YAABVerror_category@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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost