码迷,mamicode.com
首页 > 其他好文 > 详细

luabind编译报错 错误: 标识符“(”前缺少二元运算符

时间:2015-04-23 19:53:48      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:luabind   编译报错   前缺少二元运算符   



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


luabind编译报错 错误: 标识符“(”前缺少二元运算符

标签:luabind   编译报错   前缺少二元运算符   

原文地址:http://blog.csdn.net/jisuanji2121/article/details/45225777

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!