找回密码
 注册
搜索
查看: 482|回复: 2

在线等答案——modis错误

[复制链接]
发表于 2009-6-27 00:56:15 | 显示全部楼层 |阅读模式
摸底是——报错,真的郁闷!!![em04]

--------------------Configuration: MoDIS - Win32 Release-----------------------
Linking...
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _cs_ldb_english
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _cs_ldb_stroke_gb2312
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _cs_ldb_pinyin_danzi
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_DZCORE_QueryAsso
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_DZCORE_QueryCandidate
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_STK_get_match_char
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_STK_match_next_page
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_STK_match_first_page
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_LATIN_match
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_LATIN_get_match
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_DZCORE_Digit2Pinyin
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_IMM_QueryStroke_gb
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_DZCORE_QueryPinyin
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_DZCORE_Initialize
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_STK_initialize
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_STK_get_db_info
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_LATIN_initialize
cstar.lib(cstarime.obj) : error LNK2001: unresolved external symbol _CS_LATIN_get_db_info
Release\MoDIS.exe : fatal error LNK1120: 18 unresolved externals

Error executing link.exe (tool returned code: 1120)

MoDIS.exe - 19 error(s), 0 warning(s)[/COLOR][/COLOR]







如下是cstarime.c[/COLOR]

/****************************************************************************

Description: Input method integration for MMI.

Version 1.1.10

Copyright (C) 2000-2007 Beijing Komoxo Inc.
All rights reserved.

****************************************************************************/

#if defined(__MMI_CSTAR__)

/* Platform headers */

#include "MMI_features.h"
#include "gui.h"
#include "EventsGprot.h"
#include "GlobalConstants.h"
#include "Pixteldatatypes.h"
#include "wgui_categories_inputs.h"     /* For INPUT_MODE_xxxx constants    */
#include "wgui_categories_util.h"       /* For painting handler             */
#include "gui_ems.h"                    /* For structure UI_EMS_input_box   */
#include "Timerevents.h"                /* For timer ID                     */
#include "WrapperGprot.h"               /* For timer functions              */
#include "CommonScreens.h"              /* For symbol functions             */
#include "gui_data_types.h"
#include "FileMgr.h"
#include "FS_type.h"
#include "FS_errcode.h"
#include "FS_Func.h"
#include "DebugInitDef.h"
#include "gui_virtual_keyboard.h"
#include "EditorPen.h"

extern void kal_wsprintf(WCHAR *outstr, char *fmt,...);

extern int MMI_multitap_x;
extern int MMI_multitap_y;
extern int MMI_multitap_width;
extern int MMI_multitap_height;

extern byte inline_full_screen_edit_changed;

/* Input method headers */

#include "cstarime.h"
#include "cstarimeapi.h"

/*---------------------------------------------------------------------------
*
* Language database configuration
*
*/
 楼主| 发表于 2009-6-27 00:58:35 | 显示全部楼层
const CS_IME_INFO_PTR cs_input_method_config[] =
{
    #if defined(__MMI_CSTAR_SM_CHINESE__)
        #if defined(__MMI_TOUCH_SCREEN__)
            &cs_ldb_pinyin_danzi,
        #else
            &cs_ldb_pinyin_cizu,
        #endif
        &cs_ldb_stroke_gb2312,
    #endif

    #if defined(__MMI_CSTAR_TR_CHINESE__)
        #if defined(__MMI_TOUCH_SCREEN__)
            &cs_ldb_zhuyin_danzi,
        #else
            &cs_ldb_zhuyin_cizu,
        #endif
        &cs_ldb_stroke_big5,
    #endif

    #if defined(__MMI_CSTAR_ENGLISH__)
        &cs_ldb_english,
    #endif

    #if defined(__MMI_CSTAR_RUSSIAN__)
        &cs_ldb_russian,
    #endif

    #if defined(__MMI_CSTAR_GERMAN__)
        &cs_ldb_german,
    #endif

    #if defined(__MMI_CSTAR_VIETNAMESE__)
        &cs_ldb_vietnamese,
    #endif

    #if defined(__MMI_CSTAR_INDONESIAN__)
        &cs_ldb_indonesian,
    #endif

    #if defined(__MMI_CSTAR_TURKISH__)
        &cs_ldb_turkish,
    #endif

    #if defined(__MMI_CSTAR_MALAY__)
        &cs_ldb_malay,
    #endif

    #if defined(__MMI_CSTAR_GREEK__)
        &cs_ldb_greek,
    #endif

    #if defined(__MMI_CSTAR_THAI__)
        /* &cs_ldb_thai, */
        #error "Thai input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_DANISH__)
        &cs_ldb_danish,
    #endif

    #if defined(__MMI_CSTAR_DUTCH__)
        &cs_ldb_dutch,
    #endif

    #if defined(__MMI_CSTAR_POLISH__)
        &cs_ldb_polish,
    #endif

    #if defined(__MMI_CSTAR_FRENCH__)
        &cs_ldb_french,
    #endif

    #if defined(__MMI_CSTAR_HUNGARIAN__)
        /* &cs_ldb_hungarian, */
        #error "Hungarian input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_HEBREW__)
        /* &cs_ldb_hebrew, */
        #error "Hebrew input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_BULGARIAN__)
        /* &cs_ldb_bulgarian, */
        #error "Bulgarian input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_CZECH__)
        /* &cs_ldb_czech, */
        #error "Czech input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_FINNISH__)
        /* &cs_ldb_finnish, */
        #error "Finnish input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_SLOVAK__)
        /* &cs_ldb_slovak, */
        #error "Slovak input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_NORWEGIAN__)
        /* &cs_ldb_norwegian, */
        #error "Norwegian input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_SWEDISH__)
        /* &cs_ldb_swedish, */
        #error "Swedish input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_SPANISH__)
        &cs_ldb_spanish,
    #endif

    #if defined(__MMI_CSTAR_CROATIAN__)
        /* &cs_ldb_croatian, */
        #error "Croatian input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_ROMANIAN__)
        /* &cs_ldb_romanian, */
        #error "Romanian input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_SLOVENIAN__)
        /* &cs_ldb_slovenian, */
        #error "Slovenian input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_PORTUGUESE__)
        &cs_ldb_portuguese,
    #endif

    #if defined(__MMI_CSTAR_ITALIAN__)
        &cs_ldb_italian,
    #endif

    #if defined(__MMI_CSTAR_ARABIC__)
        /* &cs_ldb_arabic, */
        #error "Arabic input method is not supported."
    #endif

    #if defined(__MMI_CSTAR_HINDI__)
        /* &cs_ldb_hindi, */
        #error "Hindi input method is not supported."
    #endif

    0
};[/COLOR]
点评回复

使用道具 举报

发表于 2009-6-30 14:33:07 | 显示全部楼层
解决方法一:写在win32下的假函数,把链接不到的函数重写一遍;
解决方法二:将调用链接不到的函数的地方用win32的宏包含起来。
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-7 03:23 , Processed in 0.045027 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表