Hi Everyone A recent change to clang has begun considering a header in mingw as defective.
The header appears to be re-declaring functions with different attributes. I thought someone here might want to know about that. I am using a mingw 4.8.2 ruben build from 2013 (I think). Sorry if the situation is already fixed. If there is a newer 2014 time frame release or 4.9 or any later version (doesn't have to be a personal build) I'm happy to try that instead. Anyway, here's what my machine now reports from building libcxx with clang 3.5 from svn, and gnu/mingw headers. Thanks [10/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj FAILED: \mingw\bin\clang++.exe -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3 -DNDEBUG -Ic:\libcxx\include -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj -MF "lib/CMakeFiles/cxx.di r/__/src/exception.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj -c c:\libcxx\src\exception.cpp In file included from c:\libcxx\src\exception.cpp:10: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca nf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\exception.cpp:10: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D EPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\exception.cpp:10: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT TRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\exception.cpp:10: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr intf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_ DEPRECATED_SEC_WARN; ^ c:\libcxx\src\exception.cpp:118:9: warning: #warning is a language extension [-Wpedantic] # warning uncaught_exception not yet implemented ^ c:\libcxx\src\exception.cpp:118:9: warning: uncaught_exception not yet implemented [-W#warnings] c:\libcxx\src\exception.cpp:191:9: warning: #warning is a language extension [-Wpedantic] # warning exception_ptr not yet implemented ^ c:\libcxx\src\exception.cpp:191:9: warning: exception_ptr not yet implemented [-W#warnings] c:\libcxx\src\exception.cpp:210:9: warning: #warning is a language extension [-Wpedantic] # warning exception_ptr not yet implemented ^ c:\libcxx\src\exception.cpp:210:9: warning: exception_ptr not yet implemented [-W#warnings] c:\libcxx\src\exception.cpp:235:9: warning: #warning is a language extension [-Wpedantic] # warning exception_ptr not yet implemented ^ c:\libcxx\src\exception.cpp:235:9: warning: exception_ptr not yet implemented [-W#warnings] c:\libcxx\src\exception.cpp:279:9: warning: #warning is a language extension [-Wpedantic] # warning exception_ptr not yet implemented ^ c:\libcxx\src\exception.cpp:279:9: warning: exception_ptr not yet implemented [-W#warnings] c:\libcxx\src\exception.cpp:301:9: warning: #warning is a language extension [-Wpedantic] # warning exception_ptr not yet implemented ^ c:\libcxx\src\exception.cpp:301:9: warning: exception_ptr not yet implemented [-W#warnings] 12 warnings and 4 errors generated. [10/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj FAILED: \mingw\bin\clang++.exe -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3 -DNDEBUG -Ic:\libcxx\include -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj -MF "lib/CMakeFiles/cxx.dir/__ /src/debug.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj -c c:\libcxx\src\debug.cpp In file included from c:\libcxx\src\debug.cpp:12: In file included from c:\libcxx\include\__debug:21: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca nf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\debug.cpp:12: In file included from c:\libcxx\include\__debug:21: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D EPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\debug.cpp:12: In file included from c:\libcxx\include\__debug:21: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT TRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\debug.cpp:12: In file included from c:\libcxx\include\__debug:21: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr intf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_ DEPRECATED_SEC_WARN; ^ 4 errors generated. [10/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj FAILED: \mingw\bin\clang++.exe -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3 -DNDEBUG -Ic:\libcxx\include -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj -MF "lib/CMakeFiles/cxx.dir/_ _/src/future.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj -c c:\libcxx\src\future.cpp In file included from c:\libcxx\src\future.cpp:11: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca nf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\future.cpp:11: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D EPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\future.cpp:11: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT TRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\future.cpp:11: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr intf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_ DEPRECATED_SEC_WARN; ^ 4 errors generated. [10/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj FAILED: \mingw\bin\clang++.exe -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3 -DNDEBUG -Ic:\libcxx\include -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj -MF "lib/CMakeFiles/cxx.dir /__/src/iostream.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj -c c:\libcxx\src\iostream.cpp In file included from c:\libcxx\src\iostream.cpp:10: In file included from c:\libcxx\include\__std_stream:15: In file included from c:\libcxx\include\ostream:131: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca nf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\iostream.cpp:10: In file included from c:\libcxx\include\__std_stream:15: In file included from c:\libcxx\include\ostream:131: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D EPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\iostream.cpp:10: In file included from c:\libcxx\include\__std_stream:15: In file included from c:\libcxx\include\ostream:131: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT TRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\iostream.cpp:10: In file included from c:\libcxx\include\__std_stream:15: In file included from c:\libcxx\include\ostream:131: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr intf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_ DEPRECATED_SEC_WARN; ^ 4 errors generated. [10/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj FAILED: \mingw\bin\clang++.exe -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3 -DNDEBUG -Ic:\libcxx\include -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj -MF "lib/CMakeFiles/cxx.dir/__/s rc/ios.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj -c c:\libcxx\src\ios.cpp In file included from c:\libcxx\src\ios.cpp:12: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca nf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\ios.cpp:12: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D EPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\ios.cpp:12: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT TRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\ios.cpp:12: In file included from c:\libcxx\include\ios:216: In file included from c:\libcxx\include\__locale:15: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr intf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_ DEPRECATED_SEC_WARN; ^ 4 errors generated. [10/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj FAILED: \mingw\bin\clang++.exe -pipe -march=corei7 -O3 -fno-exceptions -nostdinc++ -std=c++0x -Werror=return-type -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3 -DNDEBUG -Ic:\libcxx\include -fPIC -MMD -MT lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj -MF "lib/CMakeFiles/cxx.di r/__/src/algorithm.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj -c c:\libcxx\src\algorithm.cpp In file included from c:\libcxx\src\algorithm.cpp:12: In file included from c:\libcxx\include\random:1644: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23: error: redeclaration of '_sca nf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15: note: previous declaration is here int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\algorithm.cpp:12: In file included from c:\libcxx\include\random:1644: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23: error: redeclaration of '_fsc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15: note: previous declaration is here int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) __MINGW_ATTRIB_D EPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\algorithm.cpp:12: In file included from c:\libcxx\include\random:1644: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23: error: redeclaration of '_ssc anf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15: note: previous declaration is here int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_AT TRIB_DEPRECATED_SEC_WARN; ^ In file included from c:\libcxx\src\algorithm.cpp:12: In file included from c:\libcxx\include\random:1644: In file included from c:\libcxx\include\string:437: In file included from c:\libcxx\include\cstdio:100: In file included from c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000: c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23: error: redeclaration of '_spr intf_l' cannot add 'dllimport' attribute _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char *_Format,_locale_t _Locale,...); ^ c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15: note: previous declaration is here int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_ DEPRECATED_SEC_WARN; ^ 4 errors generated. ninja: build stopped: subcommand failed.
------------------------------------------------------------------------------
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public