Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User mapk's Avatar
    Join Date
    Jun 2005
    Posts
    7
    大家好,我在编译3rd SDK sample的Helloworldbasic时出现了以下link error,不得其因,请大家帮忙,帮忙:-)

    Errors caused tool to abort.

    Code:
     Multiply defined section: _atexit in
    
     files abort_exit.obj (MSL_C_x86.lib), uc_exe.obj (eexe.lib), keeping definition in uc_exe.obj
    
     Multiply defined section: _memmove in
    
     files mem.obj (MSL_C_x86.lib), euser.dll (euser.lib), keeping definition in euser.dll
    
     Multiply defined section: _memcpy in
    
     files mem.obj (MSL_C_x86.lib), euser.dll (euser.lib), keeping definition in euser.dll
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) ExitProcess (__imp__ExitProcess@4)'
    
    Link Error   :  referenced from 'int MyFrameHandler(struct HandlerHeader *, void *, struct _EXCEPTION_RECORD *, struct FrameHandler *, struc
    t _CONTEXT *, int) (?MyFrameHandler@@YAHPAUHandlerHeader@@PAXPAU_EXCEPTION_RECORD@@PAUFrameHandler@@PAU_CONTEXT@@H@Z)' in exc
    rtl.obj (MSL_Runtime_x86.lib)
    
    Link Error   :  referenced from 'int MyFrameHandler(struct HandlerHeader *, void *, struct _EXCEPTION_RECORD *, struct FrameHandler *, struc
    t _CONTEXT *, int) (?MyFrameHandler@@YAHPAUHandlerHeader@@PAXPAU_EXCEPTION_RECORD@@PAUFrameHandler@@PAU_CONTEXT@@H@Z)' in exc
    rtl.obj (MSL_Runtime_x86.lib)
    
    Link Error   :  referenced from '___exit' in abort_exit.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from 'int HandlerForHandler(struct _EXCEPTION_RECORD *, struct HandlerHandler *, struct _CONTEXT *, int) (?Handle
    rForHandler@@YAHPAU_EXCEPTION_RECORD@@PAUHandlerHandler@@PAU_CONTEXT@@H@Z)' in excrtl.obj (MSL_Runtime_x86.lib)
    
    Link Error   :  Undefined symbol: '__stdcall(16) RtlUnwind (_RtlUnwind@16)'
    
    Link Error   :  referenced from 'int MyFrameHandler(struct HandlerHeader *, void *, struct _EXCEPTION_RECORD *, struct FrameHandler *, struc
    t _CONTEXT *, int) (?MyFrameHandler@@YAHPAUHandlerHeader@@PAXPAU_EXCEPTION_RECORD@@PAUFrameHandler@@PAU_CONTEXT@@H@Z)' in exc
    rtl.obj (MSL_Runtime_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) TlsGetValue (__imp__TlsGetValue@4)'
    
    Link Error   :  referenced from '__GetThreadLocalData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '__GetThreadLocalData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '__InitializeThreadData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(0) GetLastError (__imp__GetLastError@0)'
    
    Link Error   :  referenced from '___msl_write' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '___msl_close' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '___msl_read' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '__InitializeThreadData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) EnterCriticalSection (__imp__EnterCriticalSection@4)'
    
    Link Error   :  referenced from '__DisposeAllThreadData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_exit' in abort_exit.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '___exit' in abort_exit.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_malloc' in alloc.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_free' in alloc.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_raise' in signal.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_ftell' in file_pos.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '__InitializeThreadData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) LeaveCriticalSection (__imp__LeaveCriticalSection@4)'
    
    Link Error   :  referenced from '__DisposeAllThreadData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_exit' in abort_exit.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '___exit' in abort_exit.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_malloc' in alloc.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_free' in alloc.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_raise' in signal.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '_ftell' in file_pos.obj (MSL_C_x86.lib)
    
    Link Error   :  referenced from '__InitializeThreadData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(8) TlsSetValue (__imp__TlsSetValue@8)'
    
    Link Error   :  referenced from '__InitializeThreadData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(16) MessageBoxA (__imp__MessageBoxA@16)'
    
    Link Error   :  referenced from '__GetThreadLocalData' in ThreadLocalData.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) DeleteCriticalSection (__imp__DeleteCriticalSection@4)'
    
    Link Error   :  referenced from '__CleanUpMSL' in startup.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(8) GlobalAlloc (__imp__GlobalAlloc@8)'
    
    Link Error   :  referenced from '___sys_alloc' in pool_alloc.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) GlobalFree (__imp__GlobalFree@4)'
    
    Link Error   :  referenced from '___sys_free' in pool_alloc.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(16) SetFilePointer (__imp__SetFilePointer@16)'
    
    Link Error   :  referenced from '___msl_lseek' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(20) WriteFile (__imp__WriteFile@20)'
    
    Link Error   :  referenced from '___msl_write' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) CloseHandle (__imp__CloseHandle@4)'
    
    Link Error   :  referenced from '___msl_close' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(20) ReadFile (__imp__ReadFile@20)'
    
    Link Error   :  referenced from '___msl_read' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   :  Undefined symbol: '__declspec(dllimport) __stdcall(4) DeleteFileA (__imp__DeleteFileA@4)'
    
    Link Error   :  referenced from '___delete_file' in file_io.win32.obj (MSL_C_x86.lib)
    
    Link Error   : Command failed with result = 0
    
    Link Error   : Link failed
    Last edited by Nokia Ron; 2008-04-21 at 13:24.

  2. #2
    Registered User mapk's Avatar
    Join Date
    Jun 2005
    Posts
    7
    Anybody known this?

  3. #3
    Registered User cfsong's Avatar
    Join Date
    Mar 2008
    Posts
    3
    我出现了和你同样的错误,你解决了吗?

  4. #4

  5. #5
    Registered User cfsong's Avatar
    Join Date
    Mar 2008
    Posts
    3
    Thanks for your answer, but I still can't resolve it. Can you explain it concretely. OS is window XP. I just try the example "helloworldbasic".

  6. #6
    Registered User mapk's Avatar
    Join Date
    Jun 2005
    Posts
    7
    If you are using Windows XP, then you needn't spend the extra effort to build up your environment.

    Just make sure your environment variables (e.g. EPOCROOT) are correct, make use the compiler tools path is in your path variable.

  7. #7
    Nokia Developer Champion qxiaoyuan's Avatar
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346
    检查一下是否有使用静态库, 如果使用了把它放在所有library语句之前.
    静态库是不需要引用库的, 但是有些库加上了, 那就要把它放在所有library之前, 以免后面的dll加载了相同的库代码.

    -----------
    qxiaoyuan

  8. #8
    Regular Contributor linstime's Avatar
    Join Date
    Nov 2007
    Posts
    288
    Quote Originally Posted by qxiaoyuan View Post
    检查一下是否有使用静态库, 如果使用了把它放在所有library语句之前.
    静态库是不需要引用库的, 但是有些库加上了, 那就要把它放在所有library之前, 以免后面的dll加载了相同的库代码.

    -----------
    qxiaoyuan
    我也遇到这个问题,是下载了http://www.symbianos.org/projects/47...谁弄过。
    应该是这个引起的:找不到这个文件
    #ifdef SUPPORT7ZIP
    #include <lzma_decoder.h>
    #endif
    Last edited by linstime; 2008-06-17 at 04:13.

  9. #9
    Nokia Developer Champion qxiaoyuan's Avatar
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346
    什么问题, 能否描述清楚些, 8楼的问题没看懂.

    -------------
    qxiaoyuan

  10. #10
    Regular Contributor linstime's Avatar
    Join Date
    Nov 2007
    Posts
    288
    问题是:我下载了一个开源的应用whereAmi学习。地址:http://www.symbianos.org/projects/47
    选择的是s60_v3,caribde.c++编译不通过,
    1.consle提示:Errors caused tool to abort.
    2.problems提示:
    Severity and Description Path Resource Location Creation Time Id
    ';' expected whereaami/src whereamicontroller.cpp line 1952 1213672055968 14575
    (included from: whereaami/inc whereamicontroller.h line 28 1213672055968 14562
    (included from: whereaami/inc whereamicontroller.h line 523 1213672055968 14566
    C:\Carbide_workspace13\S60_3rd_FP2\whereaami\inc\whereamiappui.h:49 whereaami/inc whereamicontroller.h line 28 1213672055968 14564
    C:\Carbide_workspace13\S60_3rd_FP2\whereaami\inc\whereamiappui.h:49 whereaami/inc whereamicontroller.h line 523 1213672055968 14568
    C:\Carbide_workspace13\S60_3rd_FP2\whereaami\inc\whereamiview.h:36 whereaami/inc whereamicontroller.h line 28 1213672055968 14563
    C:\Carbide_workspace13\S60_3rd_FP2\whereaami\inc\whereamiview.h:36 whereaami/inc whereamicontroller.h line 523 1213672055968 14567
    C:\Carbide_workspace13\S60_3rd_FP2\whereaami\src\whereamidoc.cpp:34) whereaami/inc whereamicontroller.h line 28 1213672055968 14565
    C:\Carbide_workspace13\S60_3rd_FP2\whereaami\src\whereamidoc.cpp:34) whereaami/inc whereamicontroller.h line 523 1213672055968 14569
    expression syntax error whereaami/src whereamicontroller.cpp line 1950 1213672055968 14574
    expression syntax error whereaami/src whereamicontroller.cpp line 1972 1213672055984 14577
    the file 'lzma_decoder.h' cannot be opened whereaami/inc whereamicontroller.h line 28 1213672055968 14559
    the file 'lzma_decoder.h' cannot be opened whereaami/src whereamicontroller.cpp line 37 1213672055968 14561
    undefined identifier 'CLzmaDecoder' whereaami/inc whereamicontroller.h line 523 1213672055968 14560
    undefined identifier 'iLzmaDecoder' whereaami/src whereamicontroller.cpp line 1827 1213672055968 14570
    undefined identifier 'iLzmaDecoder' whereaami/src whereamicontroller.cpp line 1909 1213672055968 14571
    undefined identifier 'iLzmaDecoder' whereaami/src whereamicontroller.cpp line 1913 1213672055968 14572
    undefined identifier 'iLzmaDecoder' whereaami/src whereamicontroller.cpp line 1932 1213672055968 14573
    undefined identifier 'iLzmaDecoder' whereaami/src whereamicontroller.cpp line 1964 1213672055968 14576

    whereamicontroller.h有一个include
    #ifdef SUPPORT7ZIP
    #include <lzma_decoder.h>
    #endif

    3.刚刚查了一下这个:lzma。地址:http://www.7-zip.org/zh-cn/sdk.html
    4.又看一下mmp:
    发现有导入lzma_decoder_e0011dde.lib,估计没有这个东西
    #ifdef SUPPORT7ZIP
    LIBRARY lzma_decoder_e0011dde.lib
    #endif
    5.下载,安装了lzma
    6.下载了lzma sdk,但不知道怎样用,
    7.还没有找到方法编译通过

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved