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

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

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

Post by zg » Sat 11 Apr, 2015 10:01

Latest post of the previous page:

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

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

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

Post by John Doe » Mon 17 Aug, 2015 19:02

А кто-нибудь пробовал собирать фар с помощью gcc 5?
  1. In file included from headers.hpp:177:0,
  2.  
  3.                  from headers.cpp:34:
  4.  
  5. cpp.hpp:93:14: error: redefinition of 'template<class T> decltype (std::begin(t)) std::cbegin(const T&)'
  6.  
  7.   inline auto cbegin(const T& t) -> decltype(begin(t)) {return begin(t);}
  8.  
  9.               ^
  10.  
  11. 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,
  12.  
  13.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  14.  
  15.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  16.  
  17.                  from headers.hpp:44,
  18.  
  19.                  from headers.cpp:34:
  20.  
  21. 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
  22.  
  23.      cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont)))
  24.  
  25.      ^
  26.  
  27. In file included from headers.hpp:177:0,
  28.  
  29.                  from headers.cpp:34:
  30.  
  31. cpp.hpp:95:14: error: redefinition of 'template<class T> decltype (std::end(t)) std::cend(const T&)'
  32.  
  33.   inline auto cend(const T& t) -> decltype(end(t)) {return end(t);}
  34.  
  35.               ^
  36.  
  37. 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,
  38.  
  39.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  40.  
  41.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  42.  
  43.                  from headers.hpp:44,
  44.  
  45.                  from headers.cpp:34:
  46.  
  47. 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
  48.  
  49.      cend(const _Container& __cont) noexcept(noexcept(std::end(__cont)))
  50.  
  51.      ^
  52.  
  53. In file included from headers.hpp:177:0,
  54.  
  55.                  from headers.cpp:34:
  56.  
  57. cpp.hpp:103:14: error: redefinition of 'template<class T> decltype (std::rbegin(t)) std::crbegin(const T&)'
  58.  
  59.   inline auto crbegin(const T& t) -> decltype(rbegin(t)) {return rbegin(t);}
  60.  
  61.               ^
  62.  
  63. 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,
  64.  
  65.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  66.  
  67.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  68.  
  69.                  from headers.hpp:44,
  70.  
  71.                  from headers.cpp:34:
  72.  
  73. 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
  74.  
  75.      crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont))
  76.  
  77.      ^
  78.  
  79. In file included from headers.hpp:177:0,
  80.  
  81.                  from headers.cpp:34:
  82.  
  83. cpp.hpp:105:14: error: redefinition of 'template<class T> decltype (std::rend(t)) std::crend(const T&)'
  84.  
  85.   inline auto crend(const T& t) -> decltype(rend(t)) {return rend(t);}
  86.  
  87.               ^
  88.  
  89. 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,
  90.  
  91.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/stdexcept:39,
  92.  
  93.                  from D:/Development/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/i686-w64-mingw32/include/c++/array:38,
  94.  
  95.                  from headers.hpp:44,
  96.  
  97.                  from headers.cpp:34:
  98.  
  99. 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
  100.  
  101.      crend(const _Container& __cont) -> decltype(std::rend(__cont))
  102.  
  103.      ^
  104.  
  105. makefile_gcc:199: recipe for target 'Release.32.gcc/obj/headers.gch' failed
  106.  
  107. mingw32-make.exe[1]: *** [Release.32.gcc/obj/headers.gch] Error 1
  108.  
  109. makefile_gcc:158: recipe for target 'all' failed
  110.  
  111. mingw32-make.exe: *** [all] Error 2
  1. In file included from D:/Development/tdm64-gcc/include/windows.h:48:0,
  2.  
  3.                  from headers.hpp:127,
  4.  
  5.                  from headers.cpp:34:
  6.  
  7. SDK/sdk.common.h: In function 'bool IsWindowsXPOrGreater()':
  8.  
  9. SDK/sdk.common.h:181:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  10.  
  11.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 0);
  12.  
  13.                                           ^
  14.  
  15. SDK/sdk.common.h: In function 'bool IsWindowsXPSP1OrGreater()':
  16.  
  17. SDK/sdk.common.h:187:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  18.  
  19.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 1);
  20.  
  21.                                           ^
  22.  
  23. SDK/sdk.common.h: In function 'bool IsWindowsXPSP2OrGreater()':
  24.  
  25. SDK/sdk.common.h:193:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  26.  
  27.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 2);
  28.  
  29.                                           ^
  30.  
  31. SDK/sdk.common.h: In function 'bool IsWindowsXPSP3OrGreater()':
  32.  
  33. SDK/sdk.common.h:199:42: error: '_WIN32_WINNT_WINXP' was not declared in this scope
  34.  
  35.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINXP), LOBYTE(_WIN32_WINNT_WINXP), 3);
  36.  
  37.                                           ^
  38.  
  39. SDK/sdk.common.h: In function 'bool IsWindowsVistaOrGreater()':
  40.  
  41. SDK/sdk.common.h:205:42: error: '_WIN32_WINNT_VISTA' was not declared in this scope
  42.  
  43.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), LOBYTE(_WIN32_WINNT_VISTA), 0);
  44.  
  45.                                           ^
  46.  
  47. SDK/sdk.common.h: In function 'bool IsWindowsVistaSP1OrGreater()':
  48.  
  49. SDK/sdk.common.h:211:42: error: '_WIN32_WINNT_VISTA' was not declared in this scope
  50.  
  51.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), LOBYTE(_WIN32_WINNT_VISTA), 1);
  52.  
  53.                                           ^
  54.  
  55. SDK/sdk.common.h: In function 'bool IsWindowsVistaSP2OrGreater()':
  56.  
  57. SDK/sdk.common.h:217:42: error: '_WIN32_WINNT_VISTA' was not declared in this scope
  58.  
  59.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), LOBYTE(_WIN32_WINNT_VISTA), 2);
  60.  
  61.                                           ^
  62.  
  63. SDK/sdk.common.h: In function 'bool IsWindows7OrGreater()':
  64.  
  65. SDK/sdk.common.h:223:42: error: '_WIN32_WINNT_WIN7' was not declared in this scope
  66.  
  67.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN7), LOBYTE(_WIN32_WINNT_WIN7), 0);
  68.  
  69.                                           ^
  70.  
  71. SDK/sdk.common.h: In function 'bool IsWindows7SP1OrGreater()':
  72.  
  73. SDK/sdk.common.h:229:42: error: '_WIN32_WINNT_WIN7' was not declared in this scope
  74.  
  75.   return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN7), LOBYTE(_WIN32_WINNT_WIN7), 1);
  76.  
  77.                                           ^
  78.  
  79. In file included from headers.hpp:177:0,
  80.  
  81.                  from headers.cpp:34:
  82.  
  83. cpp.hpp: At global scope:
  84.  
  85. cpp.hpp:93:14: error: redefinition of 'template<class T> decltype (std::begin(t)) std::cbegin(const T&)'
  86.  
  87.   inline auto cbegin(const T& t) -> decltype(begin(t)) {return begin(t);}
  88.  
  89.               ^
  90.  
  91. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  92.  
  93.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  94.  
  95.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  96.  
  97.                  from headers.hpp:44,
  98.  
  99.                  from headers.cpp:34:
  100.  
  101. 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
  102.  
  103.      cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont)))
  104.  
  105.      ^
  106.  
  107. In file included from headers.hpp:177:0,
  108.  
  109.                  from headers.cpp:34:
  110.  
  111. cpp.hpp:95:14: error: redefinition of 'template<class T> decltype (std::end(t)) std::cend(const T&)'
  112.  
  113.   inline auto cend(const T& t) -> decltype(end(t)) {return end(t);}
  114.  
  115.               ^
  116.  
  117. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  118.  
  119.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  120.  
  121.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  122.  
  123.                  from headers.hpp:44,
  124.  
  125.                  from headers.cpp:34:
  126.  
  127. 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
  128.  
  129.      cend(const _Container& __cont) noexcept(noexcept(std::end(__cont)))
  130.  
  131.      ^
  132.  
  133. In file included from headers.hpp:177:0,
  134.  
  135.                  from headers.cpp:34:
  136.  
  137. cpp.hpp:103:14: error: redefinition of 'template<class T> decltype (std::rbegin(t)) std::crbegin(const T&)'
  138.  
  139.   inline auto crbegin(const T& t) -> decltype(rbegin(t)) {return rbegin(t);}
  140.  
  141.               ^
  142.  
  143. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  144.  
  145.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  146.  
  147.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  148.  
  149.                  from headers.hpp:44,
  150.  
  151.                  from headers.cpp:34:
  152.  
  153. 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
  154.  
  155.      crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont))
  156.  
  157.      ^
  158.  
  159. In file included from headers.hpp:177:0,
  160.  
  161.                  from headers.cpp:34:
  162.  
  163. cpp.hpp:105:14: error: redefinition of 'template<class T> decltype (std::rend(t)) std::crend(const T&)'
  164.  
  165.   inline auto crend(const T& t) -> decltype(rend(t)) {return rend(t);}
  166.  
  167.               ^
  168.  
  169. In file included from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/string:51:0,
  170.  
  171.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/stdexcept:39,
  172.  
  173.                  from D:/Development/tdm64-gcc/lib/gcc/mingw32/5.1.0/include/c++/array:38,
  174.  
  175.                  from headers.hpp:44,
  176.  
  177.                  from headers.cpp:34:
  178.  
  179. 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
  180.  
  181.      crend(const _Container& __cont) -> decltype(std::rend(__cont))
  182.  
  183.      ^
  184.  
  185. makefile_gcc:199: recipe for target 'Release.32.gcc/obj/headers.gch' failed
  186.  
  187. mingw32-make.exe[1]: *** [Release.32.gcc/obj/headers.gch] Error 1
  188.  
  189. makefile_gcc:158: recipe for target 'all' failed
  190.  
  191. mingw32-make.exe: *** [all] Error 2
update исправлено в 13351.

Post Reply

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

Who is online

Users browsing this forum: No registered users and 7 guests