Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. $ x86_64-w64-mingw32-g++ test.cc -I build-gnulib-gdbserver/import/ -I ~/binutils-gdb/gnulib/import/
  2. In file included from /usr/share/mingw-w64/include/io.h:10,
  3. from /usr/share/mingw-w64/include/unistd.h:10,
  4. from build-gnulib-gdbserver/import/unistd.h:40,
  5. from /usr/local/google/home/cbiesinger/binutils-gdb/gnulib/import/pathmax.h:42,
  6. from test.cc:2:
  7. build-gnulib-gdbserver/import/time.h:500:1: error: conflicting declaration of ‘tm* localtime_r(const time_t*, tm*)’ with ‘C’ linkage
  8. _GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer,
  9. ^~~~~~~~~~~~~~~~
  10. In file included from build-gnulib-gdbserver/import/time.h:41,
  11. from test.cc:3:
  12. /usr/share/mingw-w64/include/time.h:308:34: note: previous declaration with ‘C++’ linkage
  13. __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) {
  14. ^~~~~~~~~~~
  15. In file included from /usr/share/mingw-w64/include/io.h:10,
  16. from /usr/share/mingw-w64/include/unistd.h:10,
  17. from build-gnulib-gdbserver/import/unistd.h:40,
  18. from /usr/local/google/home/cbiesinger/binutils-gdb/gnulib/import/pathmax.h:42,
  19. from test.cc:2:
  20. build-gnulib-gdbserver/import/time.h:522:1: error: conflicting declaration of ‘tm* gmtime_r(const time_t*, tm*)’ with ‘C’ linkage
  21. _GL_FUNCDECL_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer,
  22. ^~~~~~~~~~~~~~~~
  23. In file included from build-gnulib-gdbserver/import/time.h:41,
  24. from test.cc:3:
  25. /usr/share/mingw-w64/include/time.h:311:34: note: previous declaration with ‘C++’ linkage
  26. __forceinline struct tm *__cdecl gmtime_r(const time_t *_Time, struct tm *_Tm) {
  27. ^~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement