×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    24

    Post link error when using .net and carbide_vs to compile ecom example

    hi ,

    I was trying to compile the ecom example given in the s60 3rd edition sdk( in the path C:\Symbian\9.1\S60_3rd\examples\SysLibs\ECom). I am using the carbide_vs in .net for developing. i import the project using the mmp file .but when i compile it a link error is being shown. the error message is as follows

    Code:
    Error in linking: Object reference not set to an instance of an object.
    InterfaceDefinition : error PRJ0003 : Error spawning 'link.exe'.
    i tried building it using the command prompt then the error messages are as follows

    Code:
    mwldsym2.exe: Undefined symbol: '___CxxFrameHandler'
    mwldsym2.exe: referenced from '__E32Dll' in uc_dll.cpp:41 (EDLL.LIB)
    mwldsym2.exe: referenced from 'void invokeTable(void (* *)(void), void (* *)(voi
    d)) (?invokeTable@@YAXPAP6AXXZ0@Z)' in win32crt.h:121 (EDLL.LIB)
    mwldsym2.exe: referenced from 'void operator delete(void *) (??3@YAXPAX@Z)' in w
    in32crt.h:176 (EDLL.LIB)
    mwldsym2.exe: referenced from 'void TPtrC8::Set(class TPtrC8 const &) (?Set@TPtr
    C8@@QAEXABV1@@Z)' in e32cmn.inl:510
    mwldsym2.exe: Undefined symbol: '__stdcall(8) _CxxThrowException (__CxxThrowExce
    ption@8)'
    mwldsym2.exe: referenced from 'void TPtrC8::Set(class TPtrC8 const &) (?Set@TPtr
    C8@@QAEXABV1@@Z)' in e32cmn.inl:510
    mwldsym2.exe: Undefined symbol: '___destroy_new_array'
    mwldsym2.exe: referenced from 'CResolver::~CResolver(unsigned int) (??_ECResolve
    r@@UAE@I@Z)' in ExampleResolver.o
    mwldsym2.exe: referenced from 'CExampleResolver::~CExampleResolver(unsigned int)
     (??_ECExampleResolver@@UAE@I@Z)' in ExampleResolver.o
    mwldsym2.exe: referenced from 'CBase::~CBase(unsigned int) (??_ECBase@@UAE@I@Z)'
     in ExampleResolver.o
    
    Errors caused tool to abort.
    make[1]: *** [\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB\ExampleResolver.dl
    l] Error 1
    make: *** [TARGETINTERFACEDEFINITION] Error 2
    mwldsym2.exe: Undefined symbol: '___unexpected'
    mwldsym2.exe: referenced from 'void operator delete(void *) (??3@YAXPAX@Z)' in w
    in32crt.h:176 (EDLL.LIB)
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\examples\Sy
    sLibs\ECom\InterfaceDefinition\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s

    As of now there is euser.lib in the mmp and i added ecom.lib.
    Should i add more lib files in the mmp?
    Expecting a solution fro this at the earliest.

    Regards,
    Rakesh

  2. #2
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: link error when using .net and carbide_vs to compile ecom example

    Hi,

    Carbide.vs does not support 3.0 Final. If you have yourself modified the descriptors to force support, you are on your own.

    The update will be out soon.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    24

    Re: link error when using .net and carbide_vs to compile ecom example

    Thank u mitts for the info. i will try with carbide.c++
    and see.

  4. #4
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113

    Re: link error when using .net and carbide_vs to compile ecom example

    I have the same issue with Carbide 2.0.1 that is supposed to support the 3rd edition SDK. command line builds successfully, but Carbide fails:
    Code:
    Updating HelloExeDll.mmp based on Deb_S60_30_WINSCW
    Update of mmp file not needed
    WINS (emulator) build
    ------ Build started: Project: HelloExeDll, Configuration: 
    Deb_S60_30_WINSCW Win32 ------
    
    Performing Pre-Build Event...
    * Current build configuration: WINSCW UDEB
    Converting multi-icons...
    Linking...
    [very long command line stripped out]
    .\deb_s60_30_winscw\HelloExeDll.obj
    .\deb_s60_30_winscw\helloexedll.uid.obj
    Error in linking: Object reference not set to an instance of an object.
    HelloExeDll : error PRJ0003 : Error spawning 'link.exe'.

  5. #5
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: link error when using .net and carbide_vs to compile ecom example

    Hi,

    Cannot really tell what is the issue from the the data given. Eg output log from a full rebuild would be help as well as info on how you have created the project etc.

  6. #6
    Registered User
    Join Date
    Sep 2004
    Posts
    10

    Re: link error when using .net and carbide_vs to compile ecom example

    Make sure that Visual Studio link.exe and supporting libraries are in the PATH environment variable.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Location
    Gyor
    Posts
    236

    Re: link error when using .net and carbide_vs to compile ecom example

    Similar experience with the latest Carbide. CodeWarrior 3.1 compile the same plugins without problem. CW not even complain the uid range when the same mmp imported to CW and MS VS C++ (carbide). WC++ is failed to compile it and CW compiles even CW known to be more restrictive. The project is the same therefore I assume the problem is in Carbide.vs. (or in the SDK)

    The 3.x port of EcomCalculator and EcomShape example which compile under carbide would be nice to download from Forum Nokia... It can be used as a template and we modify for our purpose. At least a porting document to them under VS C++.

    The Cleaner Service

  8. #8
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    81

    Re: link error when using .net and carbide_vs to compile ecom example

    Isn't this simply because Carbide doesn't know what an ECOM plugin is? Change the TARGETTYPE from ECOMIIC to DLL and it should work.

  9. #9
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: link error when using .net and carbide_vs to compile ecom example

    When Carbide.vs imports a TARGETTYPE that is does not support it imports it as if it were a DLL, so changing the TARGETTYPE in the .mmp file to DLL will create consistent build behaviour. However ECOMIIC and DLL have some subtle differences so this might not meet your development needs.

  10. #10
    Registered User
    Join Date
    Jan 2004
    Location
    Bangalore
    Posts
    30

    Re: link error when using .net and carbide_vs to compile ecom example

    Hi All,

    Even I am also facing the same linking error.
    I am using carbide.C++ and codewarrior version of SDK.
    Any light on this.
    If anyone of u have solved it could u please share ur experience here.

    Thanks
    Chetan

  11. #11
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Earth
    Posts
    105

    Re: link error when using .net and carbide_vs to compile ecom example

    I had this same error when porting an epocexe from 2nd ed to 3rd Ed
    The fix was to change the targattype in mmp file from epocexe to exe. - Shame that carbide vs didn't spot the unsupported targettype when loading the mmp file

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×