In file included from /usr/local/include/luabind/wrapper_base.hpp:31:0,
from /usr/local/include/luabind/back_reference.hpp:27,
from /usr/local/include/luabind/class.hpp:93,
from /usr/local/include/luabind/luabind.hpp:28,
from test.cpp:2:
/usr/local/include/luabind/detail/call_member.hpp:319:1: 错误: 标识符“(”前缺少二元运算符
In file included from /usr/local/include/luabind/back_reference.hpp:27:0,
from /usr/local/include/luabind/class.hpp:93,
from /usr/local/include/luabind/luabind.hpp:28,
from test.cpp:2:
/usr/local/include/luabind/wrapper_base.hpp:92:1: 错误: 标识符“(”前缺少二元运算符
In file included from /usr/local/include/luabind/function.hpp:10:0,
from /usr/local/include/luabind/class.hpp:94,
from /usr/local/include/luabind/luabind.hpp:28,
from test.cpp:2:
/usr/local/include/luabind/detail/call_function.hpp:326:1: 错误: 标识符“(”前缺少二元运算符
In file included from /usr/local/include/luabind/detail/constructor.hpp:12:0,
from /usr/local/include/luabind/class.hpp:96,
from /usr/local/include/luabind/luabind.hpp:28,
from test.cpp:2:
/usr/local/include/luabind/wrapper_base.hpp:92:1: 错误: 标识符“(”前缺少二元运算符
In file included from /usr/local/include/luabind/class.hpp:107:0,
from /usr/local/include/luabind/luabind.hpp:28,
from test.cpp:2:
/usr/local/include/luabind/detail/call_member.hpp:319:1: 错误: 标识符“(”前缺少二元运算符
make: *** [test.o] 错误 1
解决方法:
将报错行
#elif BOOST_PP_ITERATION_FLAGS() == 1
更换为
#else
#if BOOST_PP_ITERATION_FLAGS() == 1
#endif