適当に翻訳する。
icu-59.1を作る際に下記のエラーが出た。
[user@localhost source]$ make
...
...
In file included from unicode/unistr.h:33,
from charstr.h:18,
from putil.cpp:73:
./unicode/char16ptr.h:69: error: expected ‘)’ before ‘p’
./unicode/char16ptr.h:117: error: expected ‘)’ before ‘p’
./unicode/char16ptr.h:176: error: expected unqualified-id before ‘p’
./unicode/char16ptr.h:176: error: expected ‘)’ before ‘p’
./unicode/char16ptr.h:176: error: expected ‘;’ before ‘p’
./unicode/char16ptr.h:225: error: expected unqualified-id before ‘p’
./unicode/char16ptr.h:225: error: expected ‘)’ before ‘p’
./unicode/char16ptr.h:225: error: expected initializer before ‘p’
...
...
...
istr.h:4002: error: expected primary-expression before ‘const’
unicode/unistr.h:4003: error: expected ‘)’ before ‘srcStart’
unicode/unistr.h:4004: error: expected ‘)’ before ‘srcLength’
unicode/unistr.h:4004: error: initializer expression list treated as compound expression
unicode/unistr.h:4004: 警告: left-hand operand of comma has no effect
unicode/unistr.h:4004: error: expected ‘,’ or ‘;’ before ‘const’
putil.cpp:2379: error: expected ‘}’ at end of input
putil.cpp:2379: error: expected ‘}’ at end of input
unicode/unistr.h:1765: 警告: inline function ‘int32_t icu_59::UnicodeString::length() const’ used but never defined
*** Failed compilation command follows: ----------------------------------------------------------
g++ -I/usr/local/include -D_REENTRANT -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -I. -DDEFAULT_ICU_PLUGINS="/usr/local/lib/icu" -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -std=c++0x -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -c -DPIC -fPIC -o putil.o putil.cpp
--- ( rebuild with "make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [putil.o] エラー 1
make[1]: ディレクトリ `/home/user/icu/icu/source/common' から出ます
make: *** [all-recursive] エラー 2
[user@localhost source]$
gcc-4.4.5を使用していたのが問題らしい。gcc-4.8.1をインストールしたら解決した。
カレンダー
カテゴリー
最新コメント
最新記事
ブログ内検索
広告