Boost C++ Libraries: Ticket #4316: gcc 4.4 warning: get_id() redeclared without dllimport attribute: previous dllimport ignored https://svn.boost.org/trac10/ticket/4316 <p> The following warning appears on gcc4.4 mingw: </p> <p> gcc.compile.c++ ..\..\..\bin.v2\libs\thread\test\test_thread_id.test\gcc-mingw-4.4.0\debug\threading-multi\test_thread_id.o In file included from ..\..\../boost/thread/thread.hpp:22, </p> <blockquote> <p> from test_thread_id.cpp:5: </p> </blockquote> <p> ..\..\../boost/thread/detail/thread.hpp:399: warning: 'boost::thread::id boost::this_thread::get_id()' redeclared without dllimport attribute: previous dllimport ignored </p> <p> Given the declaration </p> <blockquote> <p> thread::id BOOST_THREAD_DECL get_id(); </p> </blockquote> <p> Shouldn't the friend declaration be declared as </p> <blockquote> <p> friend id BOOST_THREAD_DECL this_thread::get_id(); </p> </blockquote> <p> ? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4316 Trac 1.4.3 viboes Wed, 09 Jun 2010 00:15:22 GMT attachment set https://svn.boost.org/trac10/ticket/4316 https://svn.boost.org/trac10/ticket/4316 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">4316.patch</span> </li> </ul> Ticket viboes Wed, 09 Jun 2010 00:16:52 GMT type changed https://svn.boost.org/trac10/ticket/4316#comment:1 https://svn.boost.org/trac10/ticket/4316#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Support Requests</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Anthony Williams Wed, 09 Jun 2010 07:59:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4316#comment:2 https://svn.boost.org/trac10/ticket/4316#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed on trunk </p> Ticket