Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#43972 - [mingw-w64-headers] Error compiling with the flag -std=c++11 and <mutex> header
Attached to Project:
Community Packages
Opened by igor (igor_b) - Friday, 27 February 2015, 12:10 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 27 February 2015, 15:55 GMT
Opened by igor (igor_b) - Friday, 27 February 2015, 12:10 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 27 February 2015, 15:55 GMT
|
DetailsDescription:
Error compiling file witch include <mutex> header. Additional info: * mingw-w64-headers-4.0rc2-1 * x86_64-w64-mingw32-g++ -std=c++11 test.cpp Steps to reproduce: igor ~/projects/a160test $ cat test.cpp #include <mutex> #include <iostream> int main() { } igor ~/projects/a160test $ LANG=C x86_64-w64-mingw32-g++ -std=c++11 test.cpp In file included from /usr/x86_64-w64-mingw32/include/c++/4.9.2/x86_64-w64-mingw32/bits/gthr-default.h:35:0, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/x86_64-w64-mingw32/bits/gthr.h:148, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/ext/atomicity.h:35, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/bits/basic_string.h:39, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/string:52, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/stdexcept:39, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/array:38, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/tuple:39, from /usr/x86_64-w64-mingw32/include/c++/4.9.2/mutex:38, from test.cpp:1: /usr/x86_64-w64-mingw32/include/time.h:265:34: error: expected unqualified-id before '{' token __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { ^ /usr/x86_64-w64-mingw32/include/time.h:265:34: error: expected ')' before '{' token /usr/x86_64-w64-mingw32/include/time.h:265:34: error: expected primary-expression before 'struct' __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { ^ /usr/x86_64-w64-mingw32/include/time.h:265:34: error: expected '}' before 'struct' /usr/x86_64-w64-mingw32/include/time.h:265:34: error: expected constructor, destructor, or type conversion before ';' token __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { ^ /usr/x86_64-w64-mingw32/include/time.h:265:34: error: '___tmp_tm' does not name a type __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { ^ /usr/x86_64-w64-mingw32/include/time.h:265:34: error: expected unqualified-id before 'if' __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { ^ /usr/x86_64-w64-mingw32/include/time.h:265:34: error: '___tmp_tm' does not name a type __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { ^ /usr/x86_64-w64-mingw32/include/time.h:265:34: error: expected declaration before '}' token __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { ^ igor ~/projects/a160test $ |
This task depends upon
Closed by Sergej Pupykin (sergej)
Friday, 27 February 2015, 15:55 GMT
Reason for closing: Fixed
Additional comments about closing: already fixed by updating crt and pthreads packages to 4.0rc
Friday, 27 February 2015, 15:55 GMT
Reason for closing: Fixed
Additional comments about closing: already fixed by updating crt and pthreads packages to 4.0rc