QT Compile Error

a guest Jan 12th, 2016 11 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tools\qdatetime.cpp: In function 'QDateTimePrivate::Spec utcToLocal(QDate&, QTime&)':
  2. tools\qdatetime.cpp:4071:57: error: 'localtime_r' was not declared in this scope
  3.      brokenDown = localtime_r(&secsSince1Jan1970UTC, &res);
  4.                                                          ^
  5. tools\qdatetime.cpp: In function 'void localToUtc(QDate&, QTime&, int)':
  6. tools\qdatetime.cpp:4175:54: error: 'gmtime_r' was not declared in this scope
  7.      brokenDown = gmtime_r(&secsSince1Jan1970UTC, &res);
  8.                                                       ^
  9. Makefile.Debug:10785: recipe for target 'tmp/obj/debug_shared/qdatetime.o' failed
  10. mingw32-make[2]: *** [tmp/obj/debug_shared/qdatetime.o] Error 1
  11. mingw32-make[2]: Leaving directory 'C:/Qt/4.8.5/src/corelib'
  12. Makefile:34: recipe for target 'debug' failed
  13. mingw32-make[1]: *** [debug] Error 2
  14. mingw32-make[1]: Leaving directory 'C:/Qt/4.8.5/src/corelib'
  15. Makefile:1149: recipe for target 'sub-corelib-sub_Debug' failed
  16. mingw32-make: *** [sub-corelib-sub_Debug] Error 2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand