Advertisement
Rapptz

Untitled

Dec 8th, 2013
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.54 KB | None | 0 0
  1. [1/2] Compiling main.cpp
  2. FAILED: g++ -MMD -MF obj/main.o.d -std=c++11 -pedantic -pedantic-errors -Wextra -Wall -O2 -DNDEBUG -c main.cpp -o obj/main.o -I"."
  3. In file included from ./sol/state.hpp:26:0,
  4.  
  5.                  from ./sol.hpp:25,
  6.  
  7.                  from main.cpp:1:
  8.  
  9. ./sol/table.hpp: In member function 'sol::table& sol::table::set_fx(std::true_type, T&&, TFx&&, TObj&&)':
  10.  
  11. ./sol/table.hpp:148:9: error: 'memcpy' is not a member of 'std'
  12.  
  13.          std::memcpy(std::addressof(fxptrdata[ 0 ]), std::addressof(fxptr), fxptrsize);
  14.  
  15.          ^
  16.  
  17. ./sol/table.hpp:148:9: note: suggested alternative:
  18.  
  19. In file included from c:\mingw64\include\c++\4.8.1\cwchar:44:0,
  20.  
  21.                  from c:\mingw64\include\c++\4.8.1\bits\postypes.h:40,
  22.  
  23.                  from c:\mingw64\include\c++\4.8.1\bits\char_traits.h:40,
  24.  
  25.                  from c:\mingw64\include\c++\4.8.1\string:40,
  26.  
  27.                  from c:\mingw64\include\c++\4.8.1\stdexcept:39,
  28.  
  29.                  from ./sol/error.hpp:25,
  30.  
  31.                  from ./sol/state.hpp:25,
  32.  
  33.                  from ./sol.hpp:25,
  34.  
  35.                  from main.cpp:1:
  36.  
  37. c:\mingw64\x86_64-w64-mingw32\include\wchar.h:957:17: note:   'memcpy'
  38.  
  39.    void *__cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  40.  
  41.                  ^
  42.  
  43. In file included from ./sol/state.hpp:26:0,
  44.  
  45.                  from ./sol.hpp:25,
  46.  
  47.                  from main.cpp:1:
  48.  
  49. ./sol/table.hpp: In instantiation of 'sol::table& sol::table::set_function(T&&, TFx&&, TObj&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (member_test::*)(); TObj = member_test]':
  50.  
  51. main.cpp:47:99:   required from here
  52.  
  53. ./sol/table.hpp:83:81: error: no matching function for call to 'sol::table::set_lvalue_fx(std::integral_constant<bool, false>, const char [4], std::basic_string<char> (member_test::*)(), member_test)'
  54.  
  55.              std::forward<T>(key), std::forward<TFx>(fx), std::forward<TObj>(obj));
  56.  
  57.                                                                                  ^
  58.  
  59. ./sol/table.hpp:83:81: note: candidates are:
  60.  
  61. ./sol/table.hpp:120:12: note: template<class T, class TFx, class TObj> sol::table& sol::table::set_lvalue_fx(std::true_type, T&&, TFx&&, TObj&&)
  62.  
  63.      table& set_lvalue_fx(std::true_type, T&& key, TFx&& fx, TObj&& obj) {
  64.  
  65.             ^
  66.  
  67. ./sol/table.hpp:120:12: note:   template argument deduction/substitution failed:
  68.  
  69. ./sol/table.hpp:83:81: note:   cannot convert 'std::integral_constant<bool, false>()' (type 'std::integral_constant<bool, false>') to type 'std::true_type {aka std::integral_constant<bool, true>}'
  70.  
  71.              std::forward<T>(key), std::forward<TFx>(fx), std::forward<TObj>(obj));
  72.  
  73.                                                                                  ^
  74.  
  75. ./sol/table.hpp:125:12: note: sol::table& sol::table::set_lvalue_fx(std::false_type, T&&, TFx&&, TM&) [with T = const char (&)[4]; TFx = std::basic_string<char> (member_test::*)(); TM = member_test; std::false_type = std::integral_constant<bool, false>]
  76.  
  77.      table& set_lvalue_fx(std::false_type, T&& key, TFx&& fx, TM& mem) {
  78.  
  79.             ^
  80.  
  81. ./sol/table.hpp:125:12: note:   no known conversion for argument 4 from 'member_test' to 'member_test&'
  82.  
  83. ./sol/table.hpp: In instantiation of 'sol::table& sol::table::set_fx(std::false_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (*)(); std::false_type = std::integral_constant<bool, false>]':
  84.  
  85. ./sol/table.hpp:94:85:   required from 'sol::table& sol::table::set_isfunction_fx(std::true_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (*)(); std::true_type = std::integral_constant<bool, true>]'
  86.  
  87. ./sol/table.hpp:77:106:   required from 'sol::table& sol::table::set_function(T&&, TFx&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (*)()]'
  88.  
  89. main.cpp:37:72:   required from here
  90.  
  91. ./sol/table.hpp:173:50: error: invalid static_cast from type 'ptr_fx {aka std::basic_string<char> (*)()}' to type 'void*'
  92.  
  93.         void* userdata = static_cast<void*>(target);
  94.  
  95.                                                   ^
  96.  
  97. ./sol/table.hpp:179:8: warning: missing initializer for member 'luaL_Reg::name' [-Wmissing-field-initializers]
  98.  
  99.         };
  100.  
  101.         ^
  102.  
  103. ./sol/table.hpp:179:8: warning: missing initializer for member 'luaL_Reg::func' [-Wmissing-field-initializers]
  104.  
  105. ./sol/table.hpp:173:14: warning: unused variable 'userdata' [-Wunused-variable]
  106.  
  107.         void* userdata = static_cast<void*>(target);
  108.  
  109.               ^
  110.  
  111. ./sol/table.hpp: In instantiation of 'sol::table& sol::table::set_fx(std::true_type, T&&, TFx&&, TObj&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (member_test::*)(); TObj = member_test&; std::true_type = std::integral_constant<bool, true>]':
  112.  
  113. ./sol/table.hpp:121:109:   required from 'sol::table& sol::table::set_lvalue_fx(std::true_type, T&&, TFx&&, TObj&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (member_test::*)(); TObj = member_test&; std::true_type = std::integral_constant<bool, true>]'
  114.  
  115. ./sol/table.hpp:83:81:   required from 'sol::table& sol::table::set_function(T&&, TFx&&, TObj&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (member_test::*)(); TObj = member_test&]'
  116.  
  117. main.cpp:42:89:   required from here
  118.  
  119. ./sol/table.hpp:155:9: warning: missing initializer for member 'luaL_Reg::name' [-Wmissing-field-initializers]
  120.  
  121.          };
  122.  
  123.          ^
  124.  
  125. ./sol/table.hpp:155:9: warning: missing initializer for member 'luaL_Reg::func' [-Wmissing-field-initializers]
  126.  
  127. ./sol/table.hpp: In instantiation of 'sol::table& sol::table::set_fx(T&&, std::unique_ptr<sol::lua_func>) [with T = const char (&)[4]]':
  128.  
  129. ./sol/table.hpp:116:59:   required from 'sol::table& sol::table::set_isconvertible_fx(std::false_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = main()::__lambda4; std::false_type = std::integral_constant<bool, false>]'
  130.  
  131. ./sol/table.hpp:102:96:   required from 'sol::table& sol::table::set_isfunction_fx(std::false_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = main()::__lambda4; std::false_type = std::integral_constant<bool, false>]'
  132.  
  133. ./sol/table.hpp:77:106:   required from 'sol::table& sol::table::set_function(T&&, TFx&&) [with T = const char (&)[4]; TFx = main()::__lambda4]'
  134.  
  135. main.cpp:62:9:   required from here
  136.  
  137. ./sol/table.hpp:208:9: warning: missing initializer for member 'luaL_Reg::name' [-Wmissing-field-initializers]
  138.  
  139.          };
  140.  
  141.          ^
  142.  
  143. ./sol/table.hpp:208:9: warning: missing initializer for member 'luaL_Reg::func' [-Wmissing-field-initializers]
  144.  
  145. ./sol/table.hpp: In instantiation of 'sol::table& sol::table::set_fx(std::false_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = const char* (*)(); std::false_type = std::integral_constant<bool, false>]':
  146.  
  147. ./sol/table.hpp:94:85:   required from 'sol::table& sol::table::set_isfunction_fx(std::true_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = const char* (*)(); std::true_type = std::integral_constant<bool, true>]'
  148.  
  149. ./sol/table.hpp:109:107:   required from 'sol::table& sol::table::set_isconvertible_fx(std::true_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = main()::__lambda3; std::true_type = std::integral_constant<bool, true>]'
  150.  
  151. ./sol/table.hpp:102:96:   required from 'sol::table& sol::table::set_isfunction_fx(std::false_type, T&&, TFx&&) [with T = const char (&)[4]; TFx = main()::__lambda3; std::false_type = std::integral_constant<bool, false>]'
  152.  
  153. ./sol/table.hpp:77:106:   required from 'sol::table& sol::table::set_function(T&&, TFx&&) [with T = const char (&)[4]; TFx = main()::__lambda3]'
  154.  
  155. main.cpp:34:9:   required from here
  156.  
  157. ./sol/table.hpp:173:50: error: invalid static_cast from type 'ptr_fx {aka const char* (*)()}' to type 'void*'
  158.  
  159.         void* userdata = static_cast<void*>(target);
  160.  
  161.                                                   ^
  162.  
  163. ./sol/table.hpp:179:8: warning: missing initializer for member 'luaL_Reg::name' [-Wmissing-field-initializers]
  164.  
  165.         };
  166.  
  167.         ^
  168.  
  169. ./sol/table.hpp:179:8: warning: missing initializer for member 'luaL_Reg::func' [-Wmissing-field-initializers]
  170.  
  171. ./sol/table.hpp:173:14: warning: unused variable 'userdata' [-Wunused-variable]
  172.  
  173.         void* userdata = static_cast<void*>(target);
  174.  
  175.               ^
  176.  
  177. ./sol/table.hpp: In member function 'sol::table& sol::table::set_function(T&&, TFx&&, TObj&&) [with T = const char (&)[4]; TFx = std::basic_string<char> (member_test::*)(); TObj = member_test]':
  178.  
  179. ./sol/table.hpp:84:5: warning: control reaches end of non-void function [-Wreturn-type]
  180.  
  181.      }
  182.  
  183.      ^
  184.  
  185. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement