[cfe-dev] Latest clang shows failure in redeclaration with dllimport

Edward Diener eldlistmailingz at tropicsoft.com
Tue May 5 10:03:54 PDT 2015


Testing some Boost libraries with the latest build of clang I get the 
failure:

c:/mingw/i686-w64-mingw32/include\synchapi.h:127:26: error: 
redeclaration of 'Sleep' cannot add 'dllimport' attribute
   WINBASEAPI VOID WINAPI Sleep (DWORD dwMilliseconds);
                          ^
..\..\..\boost/smart_ptr/detail/yield_k.hpp:63:29: note: previous 
declaration is here
   extern "C" void __stdcall Sleep( unsigned long ms );
                             ^
1 error generated.

Has clang now changed so that a redeclaration with or without a 
'dllimport' attribute is now an error ?





More information about the cfe-dev mailing list