C++ OOLUA编译器错误

C++ OOLUA编译器错误,c++,lua,compiler-errors,oolua,C++,Lua,Compiler Errors,Oolua,我试图用OOLUA编译一个简单的程序,但是我遇到了无法解释的错误 守则: #include <oolua.h> #include <iostream> class TestClass { public: TestClass() { std::cout << "foo" << std::endl; } ~TestClass() { std::cout << "bar" << std::endl; } }; OOLUA_CL

我试图用OOLUA编译一个简单的程序,但是我遇到了无法解释的错误

守则:

#include <oolua.h>
#include <iostream>

class TestClass
{
public:
TestClass() { std::cout << "foo" << std::endl; }
~TestClass() { std::cout << "bar" << std::endl; }
};

OOLUA_CLASS_NO_BASES(TestClass)
OOLUA_NO_TYPEDEFS
OOLUA_CLASS_END

int main()
{
    OOLUA::Script vm;
    vm.register_class<TestClass>();

    OOLUA::run_chunk(vm, "obj = TestClass.new() ");
}

有更多的宏在使用时无法编译,但目前它无法使用简单的程序。欢迎任何输入。

什么版本的oolua?假设我读的东西正确
oolua\u NO\u TYPEDEFS
已在该版本的oolua中删除。您需要更新以匹配。
7 error: 'OOLUA_NO_TYPEDEFS' does not name a type
16 expected '}' at end of input
251 error: expected unqualified-if at end of input
251 expected '}' at end of input