忍者ブログ

素人翻訳

適当に翻訳する。

icu4c-59_1 の make でエラー(古いgcc)

 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をインストールしたら解決した。

PR

コメント

お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード Vodafone絵文字 i-mode絵文字 Ezweb絵文字

カレンダー

03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

最新コメント

[08/18 NONAME]
[05/18 NONAME]
[04/09 NONAME]
[03/21 NONAME]
[03/20 NONAME]

最新記事

ブログ内検索

広告

バーコード

広告