Guest User

Untitled

a guest
Dec 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.60 KB | None | 0 0
  1. In file included from D:/env/boost/boost_1_58_0boost/thread.hpp:13:
  2. In file included from D:/env/boost/boost_1_58_0boost/thread/thread.hpp:12:
  3. In file included from D:/env/boost/boost_1_58_0boost/thread/thread_only.hpp:15:
  4. In file included from D:/env/boost/boost_1_58_0boost/thread/win32/thread_data.hpp:11:
  5. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:223:67: error: conflicting types for 'GetProcAddress'
  6. __declspec(dllimport) detail::farproc_t __stdcall GetProcAddress(void *, const char *);
  7. ^
  8. /mingw/includewinbase.h:1675:27: note: previous declaration is here
  9. WINBASEAPI FARPROC WINAPI GetProcAddress(HINSTANCE,LPCSTR);
  10. ^
  11. In file included from D:/env/boost/boost_1_58_0boost/thread/thread_only.hpp:15:
  12. In file included from D:/env/boost/boost_1_58_0boost/thread/win32/thread_data.hpp:11:
  13. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:223:67: warning: redeclaration of 'GetProcAddress' should not add 'dllimport' attribute [-Wdll-attribute-on-redeclaration]
  14. __declspec(dllimport) detail::farproc_t __stdcall GetProcAddress(void *, const char *);
  15. ^
  16. /mingw/includewinbase.h:1675:27: note: previous declaration is here
  17. WINBASEAPI FARPROC WINAPI GetProcAddress(HINSTANCE,LPCSTR);
  18. ^
  19. In file included from D:DocumentssolidsolidSolid.clionsrcConcurrenttestsThreadPoolTests.cpp:11:
  20.  
  21. In file included from D:/env/boost/boost_1_58_0boost/thread.hpp:13:
  22. In file included from D:/env/boost/boost_1_58_0boost/thread/thread.hpp:12:
  23. In file included from D:/env/boost/boost_1_58_0boost/thread/thread_only.hpp:15:
  24. In file included from D:/env/boost/boost_1_58_0boost/thread/win32/thread_data.hpp:11:
  25. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:225:56: error: functions that differ only in their return type cannot be overloaded
  26. __declspec(dllimport) void * __stdcall GetModuleHandleA(const char *);
  27. ^
  28. /mingw/includewinbase.h:1648:27: note: previous declaration is here
  29. WINBASEAPI HMODULE WINAPI GetModuleHandleA(LPCSTR);
  30. ^
  31.  
  32. In file included from D:/env/boost/boost_1_58_0boost/thread.hpp:13:
  33. In file included from D:/env/boost/boost_1_58_0boost/thread/thread.hpp:12:
  34. In file included from D:/env/boost/boost_1_58_0boost/thread/thread_only.hpp:15:
  35. In file included from D:/env/boost/boost_1_58_0boost/thread/win32/thread_data.hpp:11:
  36. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:225:56: warning: redeclaration of 'GetModuleHandleA' should not add 'dllimport' attribute [-Wdll-attribute-on-redeclaration]
  37. __declspec(dllimport) void * __stdcall GetModuleHandleA(const char *);
  38. ^
  39. /mingw/includewinbase.h:1648:27: note: previous declaration is here
  40. WINBASEAPI HMODULE WINAPI GetModuleHandleA(LPCSTR);
  41. ^
  42.  
  43. In file included from D:/env/boost/boost_1_58_0boost/thread.hpp:13:
  44. In file included from D:/env/boost/boost_1_58_0boost/thread/thread.hpp:12:
  45. In file included from D:/env/boost/boost_1_58_0boost/thread/thread_only.hpp:15:
  46. In file included from D:/env/boost/boost_1_58_0boost/thread/win32/thread_data.hpp:11:
  47. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:229:63: warning: redeclaration of 'GetTickCount' should not add 'dllimport' attribute [-Wdll-attribute-on-redeclaration]
  48. __declspec(dllimport) unsigned long __stdcall GetTickCount();
  49. ^
  50. /mingw/includewinbase.h:1758:25: note: previous declaration is here
  51. WINBASEAPI DWORD WINAPI GetTickCount(VOID);
  52. ^
  53.  
  54. mingw32-make.exe[1]: *** [src/Core/CMakeFiles/Core.dir/all] Error 2
  55. In file included from /mingw/includewindows.h:50:
  56. /mingw/includewinbase.h:1358:26: error: conflicting types for 'CreateEventA'
  57. WINBASEAPI HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
  58. ^
  59. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:166:55: note: previous declaration is here
  60. __declspec(dllimport) void* __stdcall CreateEventA(_SECURITY_ATTRIBUTES*,int,int,char const*);
  61. ^
  62. In file included from /mingw/includewindows.h:50:
  63. /mingw/includewinbase.h:1386:26: error: conflicting types for 'CreateMutexA'
  64. WINBASEAPI HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
  65. ^
  66. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:164:55: note: previous declaration is here
  67. __declspec(dllimport) void* __stdcall CreateMutexA(_SECURITY_ATTRIBUTES*,int,char const*);
  68. ^
  69. In file included from /mingw/includewindows.h:50:
  70. /mingw/includewinbase.h:1412:26: error: conflicting types for 'CreateSemaphoreA'
  71. WINBASEAPI HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
  72. ^
  73. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:165:55: note: previous declaration is here
  74. __declspec(dllimport) void* __stdcall CreateSemaphoreA(_SECURITY_ATTRIBUTES*,long,long,char const*);
  75. ^
  76. In file included from /mingw/includewindows.h:50:
  77. /mingw/includewinbase.h:1492:24: error: conflicting types for 'FileTimeToLocalFileTime'
  78. WINBASEAPI BOOL WINAPI FileTimeToLocalFileTime(CONST FILETIME *,LPFILETIME);
  79. ^
  80. D:/env/boost/boost_1_58_0boost/date_time/filetime_functions.hpp:58:45: note: previous declaration is here
  81. __declspec(dllimport) int __stdcall FileTimeToLocalFileTime(const FILETIME* lpFileTime, FILETIME* lpLocalFileTime);
  82. ^
  83. In file included from /mingw/includewindows.h:50:
  84. /mingw/includewinbase.h:1648:27: error: functions that differ only in their return type cannot be overloaded
  85. WINBASEAPI HMODULE WINAPI GetModuleHandleA(LPCSTR);
  86. ^
  87. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:225:56: note: previous declaration is here
  88. __declspec(dllimport) void * __stdcall GetModuleHandleA(const char *);
  89. ^
  90. In file included from /mingw/includewindows.h:50:
  91. /mingw/includewinbase.h:1675:27: error: conflicting types for 'GetProcAddress'
  92. WINBASEAPI FARPROC WINAPI GetProcAddress(HINSTANCE,LPCSTR);
  93. ^
  94. D:/env/boost/boost_1_58_0boost/thread/win32/thread_primitives.hpp:223:67: note: previous declaration is here
  95. __declspec(dllimport) detail::farproc_t __stdcall GetProcAddress(void *, const char *);
  96. ^
  97. In file included from /mingw/includewindows.h:50:
  98. /mingw/includewinbase.h:1729:24: error: conflicting types for 'GetSystemTime'
  99. WINBASEAPI VOID WINAPI GetSystemTime(LPSYSTEMTIME);
  100. ^
  101. D:/env/boost/boost_1_58_0boost/date_time/filetime_functions.hpp:59:46: note: previous declaration is here
  102. __declspec(dllimport) void __stdcall GetSystemTime(SYSTEMTIME* lpSystemTime);
  103. ^
  104. In file included from /mingw/includewindows.h:50:
  105. /mingw/includewinbase.h:1734:24: error: conflicting types for 'GetSystemTimeAsFileTime'
  106. WINBASEAPI void WINAPI GetSystemTimeAsFileTime(LPFILETIME);
  107. ^
  108. D:/env/boost/boost_1_58_0boost/date_time/filetime_functions.hpp:57:46: note: previous declaration is here
  109. __declspec(dllimport) void __stdcall GetSystemTimeAsFileTime(FILETIME* lpFileTime);
  110. ^
  111. In file included from /mingw/includewindows.h:50:
  112. /mingw/includewinbase.h:2159:24: error: conflicting types for 'SystemTimeToFileTime'
  113. WINBASEAPI BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
  114. ^
  115. D:/env/boost/boost_1_58_0boost/date_time/filetime_functions.hpp:60:45: note: previous declaration is here
  116. __declspec(dllimport) int __stdcall SystemTimeToFileTime(const SYSTEMTIME* lpSystemTime, FILETIME* lpFileTime);
  117. ^
  118.  
  119. clang++ test.cpp -lboost_thread -lboost_system
  120.  
  121. ~$clang++ --version
  122. clang version 3.2 (trunk 163783)
  123. Target: x86_64-unknown-linux-gnu
  124. Thread model: posix
  125.  
  126. ~$g++ --version
  127. g++ (GCC) 4.9.2
  128. Copyright (C) 2014 Free Software Foundation, Inc.
  129. This is free software; see the source for copying conditions. There is NO
  130. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Add Comment
Please, Sign In to add comment