как собрать плагины с помощью gcc из mingw?

Место, где разработчики плагинов могут поделиться своим опытом.
User avatar
zg
zero-gravity
Posts: 5187
Joined: Tue 15 Mar, 2005 17:36
Location: riga
Been thanked: 40 times
Contact:

сборка Far'а и плагинов из исходников

Postby zg » Sat 11 Apr, 2015 10:01

Latest post of the previous page:

обновите shlobj.h.

User avatar
John Doe
Бюрократ
Posts: 11029
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 9 times
Been thanked: 61 times

как собрать плагины с помощью gcc из mingw?

Postby John Doe » Mon 17 Aug, 2015 19:02

А кто-нибудь пробовал собирать фар с помощью gcc 5?

  1. In file included from headers.hpp:177:0,
  2.                  from headers.cpp:34:
  3. cpp.hpp:93:14: error: redefinition of 'template<class T> decltype (std::begin(t)) std::cbegin(const T&)'
  4.   inline auto cbegin(const T& t) -> decltype(begin(t)) {return begin(t);}
  5.               ^
  6. In file included from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/string:51:0,
  7.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  8.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  9.                  from headers.hpp:44,
  10.                  from headers.cpp:34:
  11. D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/bits/range_access.h:108:5: note: 'template<class _Container> constexpr decltype (std::begin(__cont)) std::cbegin(const _Container&)' previously declared here
  12.      cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont)))
  13.      ^
  14. In file included from headers.hpp:177:0,
  15.                  from headers.cpp:34:
  16. cpp.hpp:95:14: error: redefinition of 'template<class T> decltype (std::end(t)) std::cend(const T&)'
  17.   inline auto cend(const T& t) -> decltype(end(t)) {return end(t);}
  18.               ^
  19. In file included from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/string:51:0,
  20.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  21.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  22.                  from headers.hpp:44,
  23.                  from headers.cpp:34:
  24. D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/bits/range_access.h:119:5: note: 'template<class _Container> constexpr decltype (std::end(__cont)) std::cend(const _Container&)' previously declared here
  25.      cend(const _Container& __cont) noexcept(noexcept(std::end(__cont)))
  26.      ^
  27. In file included from headers.hpp:177:0,
  28.                  from headers.cpp:34:
  29. cpp.hpp:103:14: error: redefinition of 'template<class T> decltype (std::rbegin(t)) std::crbegin(const T&)'
  30.   inline auto crbegin(const T& t) -> decltype(rbegin(t)) {return rbegin(t);}
  31.               ^
  32. In file included from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/string:51:0,
  33.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  34.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  35.                  from headers.hpp:44,
  36.                  from headers.cpp:34:
  37. D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/bits/range_access.h:210:5: note: 'template<class _Container> decltype (std::rbegin(__cont)) std::crbegin(const _Container&)' previously declared here
  38.      crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont))
  39.      ^
  40. In file included from headers.hpp:177:0,
  41.                  from headers.cpp:34:
  42. cpp.hpp:105:14: error: redefinition of 'template<class T> decltype (std::rend(t)) std::crend(const T&)'
  43.   inline auto crend(const T& t) -> decltype(rend(t)) {return rend(t);}
  44.               ^
  45. In file included from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/string:51:0,
  46.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  47.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  48.                  from headers.hpp:44,
  49.                  from headers.cpp:34:
  50. D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/bits/range_access.h:220:5: note: 'template<class _Container> decltype (std::rend(__cont)) std::crend(const _Container&)' previously declared here
  51.      crend(const _Container& __cont) -> decltype(std::rend(__cont))
  52.      ^
  53. makefile_gcc:199: recipe for target 'Release.32.gcc/obj/headers.gch' failed
  54. mingw32-make.exe[1]: *** [Release.32.gcc/obj/headers.gch] Error 1
  55. makefile_gcc:158: recipe for target 'all' failed
  56. mingw32-make.exe: *** [all] Error 2


  1. In file included from D:/Development/tdm64-gcc/include/windows.h:48:0,
  2.                  from headers.hpp:127,
  3.                  from headers.cpp:34:
  4. SDK/sdk.common.h: In function 'bool IsWindowsXPOrGreater()':
  5. SDK/sdk.common.h:181:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  6.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 0);
  7.                                           ^
  8. SDK/sdk.common.h: In function 'bool IsWindowsXPSP1OrGreater()':
  9. SDK/sdk.common.h:187:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  10.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 1);
  11.                                           ^
  12. SDK/sdk.common.h: In function 'bool IsWindowsXPSP2OrGreater()':
  13. SDK/sdk.common.h:193:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  14.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 2);
  15.                                           ^
  16. SDK/sdk.common.h: In function 'bool IsWindowsXPSP3OrGreater()':
  17. SDK/sdk.common.h:199:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  18.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 3);
  19.                                           ^
  20. SDK/sdk.common.h: In function 'bool IsWindowsVistaOrGreater()':
  21. SDK/sdk.common.h:205:42: error: '_WIN32_WINNT_VISTA' was not declared in this scope
  22.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), LOBYTE(_WIN32_WINNT_VISTA), 0);
  23.                                           ^
  24. SDK/sdk.common.h: In function 'bool IsWindowsVistaSP1OrGreater()':
  25. SDK/sdk.common.h:211:42: error: '_WIN32_WINNT_VISTA' was not declared in this scope
  26.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), LOBYTE(_WIN32_WINNT_VISTA), 1);
  27.                                           ^
  28. SDK/sdk.common.h: In function 'bool IsWindowsVistaSP2OrGreater()':
  29. SDK/sdk.common.h:217:42: error: '_WIN32_WINNT_VISTA' was not declared in this scope
  30.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), LOBYTE(_WIN32_WINNT_VISTA), 2);
  31.                                           ^
  32. SDK/sdk.common.h: In function 'bool IsWindows7OrGreater()':
  33. SDK/sdk.common.h:223:42: error: '_WIN32_WINNT_WIN7' was not declared in this scope
  34.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN7), LOBYTE(_WIN32_WINNT_WIN7), 0);
  35.                                           ^
  36. SDK/sdk.common.h: In function 'bool IsWindows7SP1OrGreater()':
  37. SDK/sdk.common.h:229:42: error: '_WIN32_WINNT_WIN7' was not declared in this scope
  38.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN7), LOBYTE(_WIN32_WINNT_WIN7), 1);
  39.                                           ^
  40. In file included from headers.hpp:177:0,
  41.                  from headers.cpp:34:
  42. cpp.hpp: At global scope:
  43. cpp.hpp:93:14: error: redefinition of 'template<class T> decltype (std::begin(t)) std::cbegin(const T&)'
  44.   inline auto cbegin(const T& t) -> decltype(begin(t)) {return begin(t);}
  45.               ^
  46. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  47.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  48.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  49.                  from headers.hpp:44,
  50.                  from headers.cpp:34:
  51. D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/bits/range_access.h:108:5: note: 'template<class _Container> constexpr decltype (std::begin(__cont)) std::cbegin(const _Container&)' previously declared here
  52.      cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont)))
  53.      ^
  54. In file included from headers.hpp:177:0,
  55.                  from headers.cpp:34:
  56. cpp.hpp:95:14: error: redefinition of 'template<class T> decltype (std::end(t)) std::cend(const T&)'
  57.   inline auto cend(const T& t) -> decltype(end(t)) {return end(t);}
  58.               ^
  59. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  60.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  61.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  62.                  from headers.hpp:44,
  63.                  from headers.cpp:34:
  64. D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/bits/range_access.h:119:5: note: 'template<class _Container> constexpr decltype (std::end(__cont)) std::cend(const _Container&)' previously declared here
  65.      cend(const _Container& __cont) noexcept(noexcept(std::end(__cont)))
  66.      ^
  67. In file included from headers.hpp:177:0,
  68.                  from headers.cpp:34:
  69. cpp.hpp:103:14: error: redefinition of 'template<class T> decltype (std::rbegin(t)) std::crbegin(const T&)'
  70.   inline auto crbegin(const T& t) -> decltype(rbegin(t)) {return rbegin(t);}
  71.               ^
  72. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  73.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  74.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  75.                  from headers.hpp:44,
  76.                  from headers.cpp:34:
  77. D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/bits/range_access.h:210:5: note: 'template<class _Container> decltype (std::rbegin(__cont)) std::crbegin(const _Container&)' previously declared here
  78.      crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont))
  79.      ^
  80. In file included from headers.hpp:177:0,
  81.                  from headers.cpp:34:
  82. cpp.hpp:105:14: error: redefinition of 'template<class T> decltype (std::rend(t)) std::crend(const T&)'
  83.   inline auto crend(const T& t) -> decltype(rend(t)) {return rend(t);}
  84.               ^
  85. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  86.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  87.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  88.                  from headers.hpp:44,
  89.                  from headers.cpp:34:
  90. D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/bits/range_access.h:220:5: note: 'template<class _Container> decltype (std::rend(__cont)) std::crend(const _Container&)' previously declared here
  91.      crend(const _Container& __cont) -> decltype(std::rend(__cont))
  92.      ^
  93. makefile_gcc:199: recipe for target 'Release.32.gcc/obj/headers.gch' failed
  94. mingw32-make.exe[1]: *** [Release.32.gcc/obj/headers.gch] Error 1
  95. makefile_gcc:158: recipe for target 'all' failed
  96. mingw32-make.exe: *** [all] Error 2

update исправлено в 13351.


Return to “Разработка плагинов”

Who is online

Users browsing this forum: No registered users and 1 guest