- PR -

VS2005C++/CLIとICUでリンクエラー

1
投稿者投稿内容
hiro-ta
ベテラン
会議室デビュー日: 2003/09/03
投稿数: 79
投稿日時: 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)" は未解決です
Blue
大ベテラン
会議室デビュー日: 2005/09/12
投稿数: 230
お住まい・勤務地: 知っている人は知っている
投稿日時: 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
hiro-ta
ベテラン
会議室デビュー日: 2003/09/03
投稿数: 79
投稿日時: 2006-07-13 09:27
すみません、自己解決しました。

/Zc:wchar_t- オプションをつけてコンパイルする必要があったようです。
1

スキルアップ/キャリアアップ(JOB@IT)