Boost C++ Libraries: Ticket #4315: gcc 4.4 Warning: inline ... declared as dllimport: attribute ignored https://svn.boost.org/trac10/ticket/4315 <p> The following warnings 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/win32/thread_data.hpp:12, </p> <blockquote> <p> from ..\..\../boost/thread/thread.hpp:15, from test_thread_id.cpp:5: </p> </blockquote> <p> ..\..\../boost/thread/win32/thread_heap_alloc.hpp:59: warning: inline function 'void* boost::detail::allocate_raw_heap_memory(unsigned int)' declared as dllimport: attribute ignored ..\..\../boost/thread/win32/thread_heap_alloc.hpp:69: warning: inline function 'void boost::detail::free_raw_heap_memory(void*)' declared as dllimport: attribute ignored </p> <p> Can a inline function be declared as dllimport? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4315 Trac 1.4.3 viboes Wed, 09 Jun 2010 00:15:47 GMT attachment set https://svn.boost.org/trac10/ticket/4315 https://svn.boost.org/trac10/ticket/4315 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">4315.patch</span> </li> </ul> Ticket viboes Wed, 09 Jun 2010 00:16:59 GMT type changed https://svn.boost.org/trac10/ticket/4315#comment:1 https://svn.boost.org/trac10/ticket/4315#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 feiyunw@… Thu, 04 Aug 2011 00:59:17 GMT version, milestone changed; cc set https://svn.boost.org/trac10/ticket/4315#comment:2 https://svn.boost.org/trac10/ticket/4315#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">feiyunw@…</span> added </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.43.0</span> → <span class="trac-field-new">Boost 1.48.0</span> </li> </ul> <p> Component thread is one of the two boost components which generates warnings when compiled in MinGW/MSYS with gcc-4.5.2: </p> <pre class="wiki"> 11 ./boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function 'void* boost::detail::allocate_raw_heap_memory(unsigned int)' declared as dllimport: attribute ignored 11 ./boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function 'void boost::detail::free_raw_heap_memory(void*)' declared as dllimport: attribute ignored 10 ./boost/thread/win32/shared_mutex.hpp:50:99: warning: dereferencing type-punned pointer will break strict-aliasing rules 10 ./boost/thread/win32/shared_mutex.hpp:51:52: warning: dereferencing type-punned pointer will break strict-aliasing rules </pre><p> The preceding numbers are the numbers of occurrence.<br /> I am sorry that this one is not solved for more than one year. </p> Ticket anonymous Sat, 26 Nov 2011 10:42:25 GMT <link>https://svn.boost.org/trac10/ticket/4315#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4315#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4315#comment:2" title="Comment 2">feiyunw@…</a>: </p> <blockquote class="citation"> <p> I am sorry that this one is not solved for more than one year. </p> </blockquote> <p> Hi I'm new to boost and am writing a basic asio app as a learning exercise. Should I be worried about these warnings? do they represent genuine issues? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 03 Dec 2011 17:57:45 GMT</pubDate> <title>cc, owner, status, milestone changed https://svn.boost.org/trac10/ticket/4315#comment:4 https://svn.boost.org/trac10/ticket/4315#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.48.0</span> → <span class="trac-field-new">Boost 1.49.0</span> </li> </ul> <p> Committed in trunk at revision: 75791 </p> Ticket anonymous Thu, 05 Jan 2012 15:27:19 GMT <link>https://svn.boost.org/trac10/ticket/4315#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4315#comment:5</guid> <description> <p> Is this issue fixed now? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 07 Jan 2012 22:03:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4315#comment:6 https://svn.boost.org/trac10/ticket/4315#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Committed in release at <a class="missing ticket">#76291</a> </p> Ticket