[container] Boost 1.60 Release link error
Getting a linker error with the Windows version of Boost on release only (not debug) using v 1.60. This did not show up with 1.58 (I skipped 1.59 so I have no comment on it). I'm using the prebuilt libraries:
8> Creating library D:\GITRepos\fd_x-current_feature\source\Devices\MockDevice\Test\Release\MockTest.lib and object D:\GITRepos\fd_x-current_feature\source\Devices\MockDevice\Test\Release\MockTest.exp
8>MockDevice.lib(Mock.obj) : error LNK2001: unresolved external symbol "public: void __thiscall boost::container::container_detail::has_member_function_named_construct
On 21/12/2015 20:14, Hickman, Steve (AdvTech) wrote:
Getting a linker error with the Windows version of Boost on release only (not debug) using v 1.60. This did not show up with 1.58 (I skipped 1.59 so I have no comment on it). I’m using the prebuilt libraries:
Sorry, Steve, with this information is not easy to tell what's happening. It seems that when instantiating a trait the linker seeks (wrongly, it seems) for a definition. Just a guess, could you try find in: boost/intrusive/detail/has_member_function_callable_with.hpp (around line 167): void BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(); (which I think is the function it's trying to search) with an empty definition: void BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME() { /*empty */} Best, Ion
On Mon, Dec 21, 2015 at 1:14 PM, Hickman, Steve (AdvTech) < Steve.Hickman@honeywell.com> wrote:
Getting a linker error with the Windows version of Boost on release only (not debug) using v 1.60. This did not show up with 1.58 (I skipped 1.59 so I have no comment on it). I’m using the prebuilt libraries:
If you start with a clean copy of the boost source and build it yourself do you see the same error? Tom
participants (3)
-
Hickman, Steve (AdvTech)
-
Ion Gaztañaga
-
Tom Kent