Boost logo

Boost Users :

Subject: Re: [Boost-users] linker errors in vs2012 and boost 1.59...
From: TUELLER, SHAYNE R CIV USAF AFMC 519 SMXS/MXDEC (shayne.tueller_at_[hidden])
Date: 2015-12-07 12:09:51


Theo,

Thank you for the reply. I was wondering if I was going to get feedback at
all on this.

Much appreciated!

Shayne

-----Original Message-----
From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
Barker, Theo
Sent: Thursday, December 03, 2015 7:32 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] linker errors in vs2012 and boost 1.59...

It is definitely related to precompiled headers. It was only occurring in
projects which were using precompiled headers. When I disabled precompiled
headers in Release configuration, the link completed without errors.

 

Looks like Boost in MSVC has been bitten again by the precompiled header
issues.

 

From: Barker, Theo
Sent: Wednesday, December 02, 2015 9:03 PM
To: 'boost-users_at_[hidden]'
Subject: RE: linker errors in vs2012 and boost 1.59...

 

More precisely:

1>Linking...

1> Creating library C:\Projects\Automation_master\Release\X.lib and object
C:\Projects\Automation_master\Release\X.exp

1>Client.obj : error LNK2001: unresolved external symbol "public: void
__thiscall
boost::container::container_detail::has_member_function_named_construct<clas
s boost::container::new_allocator<struct
boost::container::container_detail::tree_node<struct std::pair<enum
MoFloAutomationCommand const ,class boost::function<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl(void)> >,void *,0,1> >
>::BaseMixin::construct(void)"
(?construct_at_BaseMixin@?$has_member_function_named_construct_at_V?$new_allocator
@U?$tree_node_at_U?$pair@$$CBW4MoFloAutomationCommand@@V?$function@$$A6A?AV?$ba
sic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@XZ_at_boost@@@std@@PAX
$0A@$00_at_container_detail_at_container@boost@@@container_at_boost@@@container_detai
l_at_container@boost@@QAEXXZ)

1>Connector.obj : error LNK2001: unresolved external symbol "public: void
__thiscall
boost::container::container_detail::has_member_function_named_construct<clas
s boost::container::new_allocator<struct
boost::container::container_detail::tree_node<struct std::pair<unsigned long
const ,class boost::shared_ptr<class Client> >,void *,0,1> >
>::BaseMixin::construct(void)"
(?construct_at_BaseMixin@?$has_member_function_named_construct_at_V?$new_allocator
@U?$tree_node_at_U?$pair@$$CBKV?$shared_ptr_at_VClient@@@boost@@@std@@PAX$0A@$00_at_c
ontainer_detail_at_container@boost@@@container_at_boost@@@container_detail_at_contain
er_at_boost@@QAEXXZ)

1>ResultMapper.obj : error LNK2001: unresolved external symbol "public: void
__thiscall
boost::container::container_detail::has_member_function_named_construct<clas
s boost::container::new_allocator<struct
boost::container::container_detail::tree_node<struct std::pair<enum
boost::system::errc::errc_t const ,enum MoFloAutomationCommandResult>,void
*,0,1> > >::BaseMixin::construct(void)"
(?construct_at_BaseMixin@?$has_member_function_named_construct_at_V?$new_allocator
@U?$tree_node_at_U?$pair@$$CBW4errc_t_at_errc@system_at_boost@@W4MoFloAutomationComma
ndResult@@@std@@PAX$0A@$00_at_container_detail_at_container@boost@@@container_at_boos
t@@@container_detail_at_container@boost@@QAEXXZ)

1>C:\Projects\Automation_master\Release\X.dll : fatal error LNK1120: 3
unresolved externals

1>Build log was saved at
"file://c:\Projects\Automation_master\X\Release\BuildLog.htm
<file:///c:\Projects\Automation_master\X\Release\BuildLog.htm> "

1>X - 4 error(s), 4 warning(s)

 

This did not occur with either Debug 1.59 nor Release 1.58. Appears to be
true for both prebuilt binaries and built-from-source

From: Barker, Theo
Sent: Wednesday, December 02, 2015 4:58 PM
To: 'boost-users_at_[hidden]'
Subject: linker errors in vs2012 and boost 1.59...

 

Shayne,

It's not just VS2012. I'm seeing that exact behavior with VS2008.

 

Theo

Please be advised that this email may contain confidential information. If
you are not the intended recipient, please notify us by email by replying to
the sender and delete this message. The sender disclaims that the content of
this email constitutes an offer to enter into, or the acceptance of, any
agreement; provided that the foregoing does not invalidate the binding
effect of any digital or other electronic reproduction of a manual signature
that is included in any attachment.




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net