- - PR -
VS2005C++/CLIとICUでリンクエラー
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2006-07-12 17:28
C++/CLIでICUのUnicodeStringを使って次のようなプログラムを書くとリンクエラーになります。なにか対処法をご存じの方いらっしゃらないでしょうか?
#include <unicode/unistr.h> class aaa : public UnicodeString { public: aaa(const aaa& s) {} }; xxxxx.obj : error LNK2001: 外部シンボル ""protected: virtual wchar_t __thiscall icu_3_4::UnicodeString::getCharAt(int)const " (?getCharAt@UnicodeString@icu_3_4@@MBE_WH@Z)" は未解決です。 xxxxx.obj : error LNK2001: 外部シンボル ""protected: virtual wchar_t __thiscall icu_3_4::UnicodeString::getCharAt(int)const " (?getCharAt@UnicodeString@icu_3_4@@$$FMBE_WH@Z)" は未解決です |
|
投稿日時: 2006-07-12 17:35
(#pragmaまたはプロジェクトの設定で)
ライブラリのリンク指示はしてありますか? 参考 http://www.zobe.jp/pw/passwiki.php?site_id=programming&page=ICU%A4%F2%BB%C8%A4%C3%A4%C6%A4%DF%A4%E8%A4%A6 |
|
投稿日時: 2006-07-13 09:27
すみません、自己解決しました。
/Zc:wchar_t- オプションをつけてコンパイルする必要があったようです。 |
1