oolua

OOLua compile errors

穿精又带淫゛_ 提交于 2019-12-24 16:15:39
问题 Code #include <OOLua/oolua.h> class foo { public: int bar(); }; OOLUA_CLASS_NO_BASES(foo)//class has no bases OOLUA_NO_TYPEDEFS OOLUA_MEM_FUN_0(int,bar) OOLUA_CLASS_END Compiler output main.cpp(21) : error C2061: syntax error : identifier 'bar' main.cpp(22) : error C2143: syntax error : missing ';' before '}' main.cpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int main.cpp(22) : warning C4183: 'OOLUA_MEM_FUN_0': missing return type; assumed to

OOLua link errors

徘徊边缘 提交于 2019-12-11 14:25:13
问题 Code #include <OOLua/oolua.h> class foo { public: int bar(); }; OOLUA_CLASS_NO_BASES(foo)//class has no bases OOLUA_NO_TYPEDEFS OOLUA_MEM_FUNC_0(int,bar) OOLUA_CLASS_END void test() { OOLUA::Script s; s.register_class<foo>(); } Compiler output 1>main.obj : error LNK2001: unresolved external symbol "public: static struct OOLUA::Proxy_class<class foo>::Reg_type_const * OOLUA::Proxy_class<class foo>::class_methods_const" (?class_methods_const@?$Proxy_class@Vfoo@@@OOLUA@@2PAUReg_type_const@12@A)