MinGw における MeCab のシェアードライブラリの問題 ― 2006年05月02日 03時20分16秒
MeCab 0.90,0.91 のどちらもですが、手元の MinGw 環境では作成されたスタティックライブラリをリンクするとシンボルが見つからないというエラーが発生しました。
以下の修正を行って生成したシェアードライブラリならリンクも問題なくできます。
# cygwin は修正の必要はありませんでした。
$ diff -u mecab.h.org mecab.h --- mecab.h.org 2006-04-30 23:30:26.000000000 +0900 +++ mecab.h 2006-05-02 03:19:37.000000000 +0900 @@ -122,7 +122,7 @@ extern "C" { #endif -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) #include# ifdef DLL_EXPORT # define MECAB_DLL_EXTERN __declspec(dllexport)
いろんなところが 2005 のまま ― 2006年05月02日 03時25分20秒
どうでもいいことですが、いろんなところが 2005 のままです。
$ mecab -h MeCab: Yet Another Part-of-Speech and Morphological Analyzer Copyright (C) 2001-2005 Taku Kudo Copyright (C) 2004-2005 Nippon Telegraph and Telephone Corporation Usage: mecab [options] files -r, --rcfile=FILE use FILE as resource file -d, --dicdir=DIR set DIR as a system dicdir -u, --userdic=FILE use FILE as a user dictionary -l, --lattice-level=INT lattice information level (default 0) -a, --all-morphs output all morphs (default false) -O, --output-format-type=TYPE set output format type (wakati,none,...) -p, --partial partial parsing mode -F, --node-format=STR use STR as the user-defined node format -U, --unk-format=STR use STR as the user-defined unk format -B, --bos-format=STR use STR as the user-defined bos format -E, --eos-format=STR use STR as the user-defined eos format -b, --input-buffer-size=INT set input buffer size (default 8192) -C, --allocate-sentence allocate new memory for input sentence -N, --nbest=INT output N best results (default 1) -t, --theta=FLOAT set temparature parameter theta (default 0.75) -o, --output=FILE set the output file name -v, --version show the version and exit. -h, --help show this help and exit.
最近のコメント