2016-10-22 1 views
0

私のliunxマシンにvoltDBの古いバージョンをビルドしていますが、私はboost spiritライブラリの問題に取り組んでいます。私がまだ正確な問題は、しかし無駄にgccのバージョンで遊んでた後、私は私のTHIRD_PARTYライブラリを更新したものを確認していない任意のアイデアは歓迎してgccのバージョンの問題..古いオープンソースソースプロジェクトでエラーコードを作成するエラー

 
[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:63:32: error: template argument 1 is invalid 
[exec]  const int_parser int64_p = int_parser();  
[exec]        ^
[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:63:44: error: invalid type in declaration before '=' token 
[exec]  const int_parser int64_p = int_parser(); 
[exec]           ^ 
[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:63:68: error: emplate argument 1 is invalid 
[exec]  const int_parser int64_p = int_parser(); 
[exec]                 ^
[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:302:23: error: reference to 'int64_t' is ambiguous 
[exec]   void new_int(int64_t i) 
[exec]      ^

[exec] In file included from /usr/include/stdlib.h:314:0, 
[exec]     from /usr/include/c++/4.8/cstdlib:72, 
[exec]     from ../../third_party/cpp/boost/config/platform/linux.hpp:14, 
[exec]     from ../../third_party/cpp/boost/config.hpp:53, 
[exec]     from ../../third_party/cpp/json_spirit/json_spirit_value.h:17, 
[exec]     from ../../third_party/cpp/json_spirit/json_spirit_reader.h:13, 
[exec]     from ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:6: 

[exec] /usr/include/x86_64-linux-gnu/sys/types.h:197:1: note: candidates are: typedef long int int64_t 
[exec] __intN_t (64, __DI__); 
[exec]^

[exec] In file included from ../../third_party/cpp/json_spirit/json_spirit_value.h:18:0, 
[exec]     from ../../third_party/cpp/json_spirit/json_spirit_reader.h:13, 
[exec]     from ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:6: 
[exec] ../../third_party/cpp/boost/cstdint.hpp:301:50: note:     typedef boost::long_long_type boost::int64_t 
[exec]  typedef ::boost::long_long_type   int64_t; 
[exec]             ^

[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:302:23: error: 'int64_t' has not been declared 
[exec]   void new_int(int64_t i) 
[exec]      ^

[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp: In constructor '{anonymous}::Json_grammer::definition::definition(const {anonymous}::Json_grammer&)': 
[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:455:49: error: a call to a constructor cannot appear in a constant-expression 
[exec]     typedef function Int_action; 
[exec]            ^

[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:455:64: error: template argument 1 is invalid 
[exec]     typedef function Int_action; 
[exec]            ^

[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:455:76: error: invalid type in declaration before ';' token 
[exec]     typedef function Int_action; 
[exec]            ^


[exec] ../../third_party/cpp/json_spirit/json_spirit_reader.cpp:527:49: error: invalid types 'const int[Int_action {aka int}]' for array subscript 
[exec]      | int64_p  [ new_int ] 
[exec]            ^
+2

gccのverssionを使用していますコンパイラで動作し、C/CPPFLAGSを知って4.02からの最後のリリースにJSON_SPIRITライブラリをしてください更新します。それらがなければ、助けのチャンスはほとんどありません。 –

+0

gccバージョン4.8.4(Ubuntu 4.8.4-2ubuntu1〜14.04.1) およびCTX.CPPFLAGS = "" "-Wall -Wextra -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings - Winit自己-Wno-未使用パラメータ -pthread -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-省略フレームポインタを-Wno-SIGN-比較 -fvisibility =隠れ-DBOOST_SP_DISABLE_THREADS ""」 – bnm

+0

オープンソースプロジェクトvoltDBとimは、新しいバージョンで削除した機能のために2012年の古いフォークを使用しています – bnm

答えて

0

ことを可能かもしれません私はそれが働いていたことを知っていたgccのバージョンに。

は基本的に、私は今あなたが使用している

関連する問題