Boost logo

Boost Users :

Subject: Re: [Boost-users] some warning C4273: inconsistent dll linkage
From: code (b4code_at_[hidden])
Date: 2011-11-21 10:26:11


Hi Alex,
I still got some of warning C4273: inconsistent dll linkage like the following
----------------------
1>  thread.cpp1>..\Boost\thread.cpp(186): warning C4273: 'boost::thread::thread' : inconsistent dll linkage1>          C:\3rdParty\BOOST_LIBRARY\boost-1.47.0\boost/thread/detail/thread.hpp(154) : see previous definition of '{ctor}'1>..\Boost\thread.cpp(189): warning C4273: 'boost::thread::start_thread' : inconsistent dll linkage1>          C:\3rdParty\BOOST_LIBRARY\boost-1.47.0\boost/thread/detail/thread.hpp(120) : see previous definition of 'start_thread'1>..\Boost\thread.cpp(200): warning C4273: 'boost::thread::thread' : inconsistent dll linkage1>          C:\3rdParty\BOOST_LIBRARY\boost-1.47.0\boost/thread/detail/thread.hpp(122) : see previous definition of '{ctor}'1>..\Boost\thread.cpp(242): warning C4273: 'boost::thread::~thread' : inconsistent dll linkage1>          C:\3rdParty\BOOST_LIBRARY\boost-1.47.0\boost/thread/detail/thread.hpp(155) : see previous definition of '{dtor}'
--------------
BTW, *after* I built boost thread libraries, I set #define BOOST_THREAD_DYN_LINK in boost-1.47.0/boost/boost/config/user.hpp, should I set  BOOST_THREAD_DYN_LINK in this file *BEFORE* building boost thread libraries? Is it correct? Did I do something wrong?

Thank you for your great help!

Yan

--- On Fri, 11/18/11, code <b4code_at_[hidden]> wrote:

From: code <b4code_at_[hidden]>
Subject: RE: [Boost-users] some warning C4273: inconsistent dll linkage
To: "Alex Perry" <Alex.Perry_at_[hidden]>
Date: Friday, November 18, 2011, 1:12 PM

Thank you so much, Alex !! I understand better.

Yan

--- On Fri, 11/18/11, Alex Perry <Alex.Perry_at_[hidden]> wrote:

From: Alex Perry <Alex.Perry_at_[hidden]>
Subject: RE: [Boost-users] some warning C4273: inconsistent dll linkage
To: "code" <b4code_at_[hidden]>
Date: Friday, November 18, 2011, 9:43 AM



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