|
From: George R. <gr...@us...> - 2005-05-31 18:34:30
|
Your problem is probably related to this bug=20 <http://bugs.icu-project.org/cgibin/icu-bugs/?findid=3D3085>. When buildin= g=20 ICU, change the definition of the wchar=5Ft type. George Rhoten IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA http://www.icu-project.org/ http://icu.sourceforge.net/ Ahmed Mugheera <amu...@gm...>=20 Sent by: icu...@li... 05/31/2005 11:08 AM Please respond to icu-support To icu...@li... cc Subject [icu-support] Build problem when using ICU in MFC application Hi All! Im working with ICU 3.2, on Windows XP, using MS VC++ 7. In an MFC application, I've made a LEFontInstance-derived class, and im using ParagraphLayout APIs. When I try to build, I get the following linker errors: error LNK2019: unresolved external symbol "=5F=5Fdeclspec(dllimport) public: =5F=5Fthiscall icu=5F3=5F2::ParagraphLayout::ParagraphLayout(wchar= =5Ft const * const,int,class icu=5F3=5F2::FontRuns const *,class icu=5F3=5F2::ValueRuns const *,class icu=5F3=5F2::ValueRuns const *,class icu=5F3=5F2::LocaleRuns const *,unsigned char,signed char,enum icu=5F3=5F2::LEErrorCode &)" (=5F=5Fimp=5F??0ParagraphLayout@icu=5F3=5F2@@QAE@QB=5FWHPBVFontRuns@1@PBVVa= lueRuns@1@2PBVLocaleRuns@1@ECAAW4LEErrorCode@1@@Z) referenced in function "protected: void =5F=5Fthiscall CChildView::OnPaint(void)" (?OnPaint@CChildView@@IAEXXZ) FSFontInstance.obj : error LNK2001: unresolved external symbol "public: virtual void =5F=5Fthiscall icu=5F3=5F2::LEFontInstance::mapCharsToGlyphs(wchar=5Ft const * const,int,int,signed char,class icu=5F3=5F2::LECharMapper const *,class icu=5F3=5F2::LEGlyphStorage &)const " (?mapCharsToGlyphs@LEFontInstance@icu=5F3=5F2@@UBEXQB=5FWHHCPBVLECharMapper= @2@AAVLEGlyphStorage@2@@Z) FSFontInstance.obj : error LNK2001: unresolved external symbol "public: virtual class icu=5F3=5F2::LEFontInstance const * =5F=5Fthiscall icu=5F3=5F2::LEFontInstance::getSubFont(wchar=5Ft const * const,int *,int,int,enum icu=5F3=5F2::LEErrorCode &)const " (?getSubFont@LEFontInstance@icu=5F3=5F2@@UBEPBV12@QB=5FWPAHHHAAW4LEErrorCod= e@2@@Z) Debug/wintest7.exe : fatal error LNK1120: 3 unresolved externals I've linked all the ICU libraries... Besides, when i use the same code in a console application, it builds and works just fine... Can you please help? Thanks, Mugheera ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22005 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F icu-support mailing list - icu...@li... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support |