错误:令牌"("之前缺少二进制运算符
error: missing binary operator before token "("
在gcc升级后,由于以下错误,我的项目无法构建:
In file included from /usr/include/luabind/wrapper_base.hpp:31:0,
from /usr/include/luabind/back_reference.hpp:27,
from /usr/include/luabind/class.hpp:93,
from /usr/include/luabind/luabind.hpp:28,
from /home/ockonal/Workspace/themisto/engine/include/Scripting/ScriptManager.hpp:21,
from /home/ockonal/Workspace/themisto/engine/source/Core/Root.cpp:28:
/usr/include/luabind/detail/call_member.hpp:319:1: error: missing binary operator before token "("
In file included from /usr/include/luabind/back_reference.hpp:27:0,
from /usr/include/luabind/class.hpp:93,
from /usr/include/luabind/luabind.hpp:28,
from /home/ockonal/Workspace/themisto/engine/include/Scripting/ScriptManager.hpp:21,
from /home/ockonal/Workspace/themisto/engine/source/Core/Root.cpp:28:
/usr/include/luabind/wrapper_base.hpp:92:1: error: missing binary operator before token "("
In file included from /usr/include/luabind/function.hpp:10:0,
from /usr/include/luabind/class.hpp:94,
from /usr/include/luabind/luabind.hpp:28,
from /home/ockonal/Workspace/themisto/engine/include/Scripting/ScriptManager.hpp:21,
from /home/ockonal/Workspace/themisto/engine/source/Core/Root.cpp:28:
/usr/include/luabind/detail/call_function.hpp:326:1: error: missing binary operator before token "("
In file included from /usr/include/luabind/detail/constructor.hpp:12:0,
from /usr/include/luabind/class.hpp:96,
from /usr/include/luabind/luabind.hpp:28,
from /home/ockonal/Workspace/themisto/engine/include/Scripting/ScriptManager.hpp:21,
from /home/ockonal/Workspace/themisto/engine/source/Core/Root.cpp:28:
/usr/include/luabind/wrapper_base.hpp:92:1: error: missing binary operator before token "("
In file included from /usr/include/luabind/class.hpp:107:0,
from /usr/include/luabind/luabind.hpp:28,
from /home/ockonal/Workspace/themisto/engine/include/Scripting/ScriptManager.hpp:21,
from /home/ockonal/Workspace/themisto/engine/source/Core/Root.cpp:28:
/usr/include/luabind/detail/call_member.hpp:319:1: error: missing binary operator before token "("
可能是什么?我也尝试过最新的gcc(4.8)快照,但没有帮助。
p.s.
extra/boost 1.49.0-1 [installed]
core/gcc 4.6.3-1 (base-devel) [installed]
aurbuild/luabind 0.9.1-1 [installed]
由于luabind是一个谷歌-谷歌项目,我能够浏览代码并找到导致错误的行。它们看起来都像:
#elif BOOST_PP_ITERATION_FLAGS() == 1
似乎其他人遇到了这个问题,我发现了这个线索,我希望能帮助你。
相关文章:
- 消除好友和成员二进制运算符的歧义
- 如何为我的类实现/重载二进制运算符
- int* 和 int[] 类型对二进制运算符 + 的操作数无效
- 类型"int"和"const char [15]"到二进制"运算符<<"的无效操作数^
- 你能帮我了解重载一元运算符和二进制运算符之间的区别吗?
- c++ 错误:二进制"运算符+"类型"矩阵*"和"矩阵*"的操作数无效
- 编译器如何区分二进制运算符和模板C++令牌>>
- 为什么我不能定义一元运算符,然后在 MSVC 的模板类中声明具有相同名称的友元二进制运算符?
- 我收到一个错误无效的操作数,类型为 const char [42] 和二进制"运算符+"的双倍数
- 类型长的长度和未解决的超载函数类型的类型的操作数与二进制运算符
- 令牌之前缺少二进制运算符 "#" 当 #define 在 #if 内时出错
- 类没有合适的复制构造函数,找不到二进制运算符 '=',
- 如何使用 Boost Spirit x3 编写具有两个后操作数语法的二进制运算符?
- 编译器将输出的流运算符<<解释为用于按位左移的二进制运算符<<
- 如何修复二进制运算符
- 类指针和类指针指向二进制运算符+的类型无效的操作数
- 铛.嵌套模板的二进制运算符重载
- 如何解决错误:在Mac上令牌"("之前缺少二进制运算符?
- CLOCKS_PER_SEC,令牌之前缺少二进制运算符.[NFIQ 2.0]
- 令牌"("错误之前缺少 QT 二进制运算符