2012-03-09 56 views
2

は私のプロジェクトがエラーに構築するために失敗したアップグレード:?エラー:トークンの前に二項演算子を行方不明「(」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)スナップショットを試してみた何をすることができますがそれは助けにはならなかったluabindとして

PS

extra/boost 1.49.0-1 [installed] 
core/gcc 4.6.3-1 (base-devel) [installed] 
aurbuild/luabind 0.9.1-1 [installed] 
+1

エラーが出力されるケースの少なくとも1つの周辺で、最小限のコードを入力してください。 –

+0

@izomorphiusエラーは私のコードに関連していません。私はluabindを削除し、最新の安定版をダウンロードしました。私は与えられたファイルのこのエラー(エラー出力から)のためにビルドできません。 – Ockonal

+1

エラーが出るこれらの行はすべて、 '#elif BOOST_PP_ITERATION_FLAGS()== 1'に似ています。 –

答えて

8

をグーグルgoogle projectが、私はコードを閲覧し、行がエラーの原因となっている見つけることができたとして存在している彼らはすべてのようになります。

#elif BOOST_PP_ITERATION_FLAGS() == 1 

はそれ他の人がこの問題に遭遇しているようだと私はあなたを助けることを願っています。このthreadを見つけました。

+0

ありがとうございます。おそらく、あなたはそれを修正する方法を知っているでしょう: '#define BOOST_PP_ITERATION_PARAMS_1(4、(0、LUABIND_MAX_ARITY、、1))'私はBOOSTからこのマクロを使ったことがありません。 – Ockonal

+1

私が見ている限り、その男は単にエリフを他の人に変更するだけで、これは問題を解決するようです。それはあなたのために働かないのですか? –

+0

それで、ありがとう;) – Ockonal