|
Boost Users : |
Subject: [Boost-users] some warning C4273: inconsistent dll linkage
From: code (b4code_at_[hidden])
Date: 2011-11-17 15:07:57
Hi Boost Users,
When I compiled and linked my projects with Boost libraries, I got the following warnings
...
1>..\Boost\thread.cpp(186): warning C4273: 'boost::thread::thread' : inconsistent dll linkage
1>..\Boost\thread.cpp(189): warning C4273: 'boost::thread::start_thread' : inconsistent dll linkage
1>..\Boost\thread.cpp(247): warning C4273: 'boost::thread::get_id' : inconsistent dll linkage
...
What could be the cause?
I want to link Boost.thread dll dynamically and other Boost libraries statically.
If I set #define BOOST_ALL_DYN_LINK, I could not generate boost_thread_vc100_mt-1_47.lib and boost_thread_vc100_mt-1_47.dll, so I commented out it to build boost_thread_vc100_mt-1_47.lib and boost_thread_vc100_mt-1_47.dll.
In order to build all other static libraries, I set #define BOOST_ALL_DYN_LINK.
So my libraries are mixed. Is it the cause for those warnings?
How can I figure out a good solution to build some dynamic dll and other static libs at the same time?
Thanks,
Yan
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