<div dir="rtl"><div dir="ltr">Hi G,</div><div dir="ltr"><br></div><div dir="ltr">To solve the <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">redeclaration</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"> </span>errors, add -D<span style="font-size:12.727272033691406px;font-family:arial,sans-serif">_CRTIMP= to the build flags. </span></div>

<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Yaron</span></div><div dir="ltr">

<span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2014-04-03 4:24 GMT+03:00 G M <span dir="ltr"><<a href="mailto:gmisocpp@gmail.com" target="_blank">gmisocpp@gmail.com</a>></span>:</div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Everyone</div><div><br></div><div>If I build libcxx on Windows/mingw64 I see errors. I am guessing these patches may be the reason.</div>

<div><br></div><div>205197 - Sema: Check dll attributes on redeclaration<br>
A redeclaration may not add dllimport or dllexport attributes. dllexport is<br>sticky and can be omitted on redeclarations while dllimport cannot.</div><div>205198 - Sema: Require external linkage for dll attributes</div>


<div><br></div><div>I believe the code might be using an inline function to hide another dllimported function of the same name. It previously compiled and now it doesn't. I don't know what the legality of that code is standards wise but that might be the intention. So I don't know if the "fix" for this should go in the libcxx/mingw code or the clang code.</div>


<div><br></div><div><div>I hope the error report and info is helpful to someone in fixing it wherever that is.</div><div>The clang is the very latest from svn.</div><div><br></div></div><div>Thanks.</div><div><br></div><div>


[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj<br>FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall<br> -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3<br>


 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj -MF "lib/CMakeFiles/cxx.di<br>r/__/src/exception.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj -c c:\libcxx\src\exception.cpp<br>


In file included from c:\libcxx\src\exception.cpp:10:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca<br>


nf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here<br>


  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\exception.cpp:10:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here<br>  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D<br>


EPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\exception.cpp:10:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc<br>


anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here<br>


  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT<br>TRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\exception.cpp:10:<br>


In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr<br>


intf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here<br>


  int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_<br>DEPRECATED_SEC_WARN;<br>              ^<br>c:\libcxx\src\exception.cpp:118:9: warning: #warning is a language extension [-Wpedantic]<br>


#       warning uncaught_exception not yet implemented<br>        ^<br>c:\libcxx\src\exception.cpp:118:9: warning: uncaught_exception not yet implemented [-W#warnings]<br>c:\libcxx\src\exception.cpp:191:9: warning: #warning is a language extension [-Wpedantic]<br>


#       warning exception_ptr not yet implemented<br>        ^<br>c:\libcxx\src\exception.cpp:191:9: warning: exception_ptr not yet implemented [-W#warnings]<br>c:\libcxx\src\exception.cpp:210:9: warning: #warning is a language extension [-Wpedantic]<br>


#       warning exception_ptr not yet implemented<br>        ^<br>c:\libcxx\src\exception.cpp:210:9: warning: exception_ptr not yet implemented [-W#warnings]<br>c:\libcxx\src\exception.cpp:235:9: warning: #warning is a language extension [-Wpedantic]<br>


#       warning exception_ptr not yet implemented<br>        ^<br>c:\libcxx\src\exception.cpp:235:9: warning: exception_ptr not yet implemented [-W#warnings]<br>c:\libcxx\src\exception.cpp:279:9: warning: #warning is a language extension [-Wpedantic]<br>


#       warning exception_ptr not yet implemented<br>        ^<br>c:\libcxx\src\exception.cpp:279:9: warning: exception_ptr not yet implemented [-W#warnings]<br>c:\libcxx\src\exception.cpp:301:9: warning: #warning is a language extension [-Wpedantic]<br>


#       warning exception_ptr not yet implemented<br>        ^<br>c:\libcxx\src\exception.cpp:301:9: warning: exception_ptr not yet implemented [-W#warnings]<br>12 warnings and 4 errors generated.<br>[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj<br>


FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall<br> -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3<br>


 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj -MF "lib/CMakeFiles/cxx.dir/__<br>/src/debug.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj -c c:\libcxx\src\debug.cpp<br>


In file included from c:\libcxx\src\debug.cpp:12:<br>In file included from c:\libcxx\include\__debug:21:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca<br>nf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here<br>  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;<br>


              ^<br>In file included from c:\libcxx\src\debug.cpp:12:<br>In file included from c:\libcxx\include\__debug:21:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here<br>  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D<br>


EPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\debug.cpp:12:<br>In file included from c:\libcxx\include\__debug:21:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here<br>  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT<br>


TRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\debug.cpp:12:<br>In file included from c:\libcxx\include\__debug:21:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr<br>intf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here<br>  int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_<br>


DEPRECATED_SEC_WARN;<br>              ^<br>4 errors generated.<br>[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj<br>FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall<br>


 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3<br> -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj -MF "lib/CMakeFiles/cxx.dir/_<br>


_/src/future.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj -c c:\libcxx\src\future.cpp<br>In file included from c:\libcxx\src\future.cpp:11:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>


In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca<br>


nf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here<br>


  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\future.cpp:11:<br>In file included from c:\libcxx\include\string:437:<br>


In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc<br>


anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here<br>


  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D<br>EPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\future.cpp:11:<br>


In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc<br>


anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here<br>


  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT<br>TRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\future.cpp:11:<br>


In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr<br>


intf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here<br>


  int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_<br>DEPRECATED_SEC_WARN;<br>              ^<br>4 errors generated.<br>[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj<br>


FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall<br> -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3<br>


 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj -MF "lib/CMakeFiles/cxx.dir<br>/__/src/iostream.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj -c c:\libcxx\src\iostream.cpp<br>


In file included from c:\libcxx\src\iostream.cpp:10:<br>In file included from c:\libcxx\include\__std_stream:15:<br>In file included from c:\libcxx\include\ostream:131:<br>In file included from c:\libcxx\include\ios:216:<br>


In file included from c:\libcxx\include\__locale:15:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca<br>nf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here<br>  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;<br>


              ^<br>In file included from c:\libcxx\src\iostream.cpp:10:<br>In file included from c:\libcxx\include\__std_stream:15:<br>In file included from c:\libcxx\include\ostream:131:<br>In file included from c:\libcxx\include\ios:216:<br>


In file included from c:\libcxx\include\__locale:15:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here<br>  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D<br>


EPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\iostream.cpp:10:<br>In file included from c:\libcxx\include\__std_stream:15:<br>In file included from c:\libcxx\include\ostream:131:<br>In file included from c:\libcxx\include\ios:216:<br>


In file included from c:\libcxx\include\__locale:15:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here<br>  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT<br>


TRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\iostream.cpp:10:<br>In file included from c:\libcxx\include\__std_stream:15:<br>In file included from c:\libcxx\include\ostream:131:<br>

In file included from c:\libcxx\include\ios:216:<br>
In file included from c:\libcxx\include\__locale:15:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr<br>intf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here<br>  int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_<br>


DEPRECATED_SEC_WARN;<br>              ^<br>4 errors generated.<br>[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj<br>FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall<br>


 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3<br> -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj -MF "lib/CMakeFiles/cxx.dir/__/s<br>


rc/ios.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj -c c:\libcxx\src\ios.cpp<br>In file included from c:\libcxx\src\ios.cpp:12:<br>In file included from c:\libcxx\include\ios:216:<br>In file included from c:\libcxx\include\__locale:15:<br>


In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca<br>


nf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here<br>


  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\ios.cpp:12:<br>In file included from c:\libcxx\include\ios:216:<br>


In file included from c:\libcxx\include\__locale:15:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here<br>  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D<br>


EPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\ios.cpp:12:<br>In file included from c:\libcxx\include\ios:216:<br>In file included from c:\libcxx\include\__locale:15:<br>In file included from c:\libcxx\include\string:437:<br>


In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc<br>


anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here<br>


  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT<br>TRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\ios.cpp:12:<br>


In file included from c:\libcxx\include\ios:216:<br>In file included from c:\libcxx\include\__locale:15:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr<br>intf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here<br>  int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_<br>


DEPRECATED_SEC_WARN;<br>              ^<br>4 errors generated.<br>[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj<br>FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall<br>


 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3<br> -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj -MF "lib/CMakeFiles/cxx.di<br>


r/__/src/algorithm.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj -c c:\libcxx\src\algorithm.cpp<br>In file included from c:\libcxx\src\algorithm.cpp:12:<br>In file included from c:\libcxx\include\random:1644:<br>


In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca<br>


nf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here<br>


  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\algorithm.cpp:12:<br>In file included from c:\libcxx\include\random:1644:<br>


In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc<br>


anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here<br>


  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D<br>EPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\algorithm.cpp:12:<br>


In file included from c:\libcxx\include\random:1644:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here<br>  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT<br>


TRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\algorithm.cpp:12:<br>In file included from c:\libcxx\include\random:1644:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>


In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr<br>


intf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...);<br>                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here<br>


  int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_<br>DEPRECATED_SEC_WARN;<br>              ^<br>4 errors generated.<br>[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\locale.cpp.obj<br>


FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall<br> -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3<br>


 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\locale.cpp.obj -MF "lib/CMakeFiles/cxx.dir/_<br>_/src/locale.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\locale.cpp.obj -c c:\libcxx\src\locale.cpp<br>


In file included from c:\libcxx\src\locale.cpp:18:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca<br>nf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here<br>  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;<br>


              ^<br>In file included from c:\libcxx\src\locale.cpp:18:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here<br>  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D<br>


EPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\locale.cpp:18:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc<br>anf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here<br>  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT<br>


TRIB_DEPRECATED_SEC_WARN;<br>              ^<br>In file included from c:\libcxx\src\locale.cpp:18:<br>In file included from c:\libcxx\include\string:437:<br>In file included from c:\libcxx\include\cstdio:100:<br>In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:<br>


c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr<br>intf_l' cannot add 'dllimport' attribute<br>  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...);<br>


                      ^<br>c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here<br>  int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_<br>


DEPRECATED_SEC_WARN;<br>              ^<br>4 errors generated.<br>end</div><div><br></div></div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>