×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    39

    error about multiple definition of vtable and typeinfo

    the errors are bellow:

    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\xpcom_core_symbian.lib(nsXPComInit.o).rodata+0xca8): multiple definition of `vtable for nsGetClassObjectByContractID'
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\embed_base_symbian.lib(nsEmbedAPI.o).rodata+0x130): first defined here
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\xpcom_core_symbian.lib(nsXPComInit.o).rodata+0x1258): multiple definition of `typeinfo for nsGetClassObjectByContractID'
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\embed_base_symbian.lib(nsEmbedAPI.o).rodata+0x23c): first defined here
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\xpcom_core_symbian.lib(nsXPComInit.o).rodata+0xcb8): multiple definition of `vtable for nsGetClassObjectByCID'
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\embed_base_symbian.lib(nsEmbedAPI.o).rodata+0x140): first defined here
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\xpcom_core_symbian.lib(nsXPComInit.o).rodata+0x122c): multiple definition of `typeinfo for nsGetClassObjectByCID'
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\embed_base_symbian.lib(nsEmbedAPI.o).rodata+0x210): first defined here
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\xpcom_core_symbian.lib(nsXPComInit.o).rodata+0xcc8): multiple definition of `vtable for nsCreateInstanceFromFactory'
    ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\ARMV5\UREL\embed_base_symbian.lib(nsEmbedAPI.o).rodata+0x150): first defined here

    the class is defined the follow:
    class NS_COM_GLUE nsGetClassObjectByContractID : public nsCOMPtr_helper
    {
    public:
    nsGetClassObjectByContractID( const char* aContractID, nsresult* aErrorPtr )
    : mContractID(aContractID),
    mErrorPtr(aErrorPtr)
    {
    // nothing else to do here
    }

    virtual nsresult NS_FASTCALL operator()( const nsIID&, void** ) const;

    private:
    const char* mContractID;
    nsresult* mErrorPtr;
    };

    first, how to deal with the errors?
    secnd, the symbian don't support RTTI(9.0 before), but why does it generate the “typeinfo” when I compile the gcce version? (vs 2003 , carbide 2.01, 3.0 MR)
    Last edited by sslsslssl; 2007-10-18 at 16:42.

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    39

    Re: error about multiple definition of vtable and typeinfo

    no body met the same problem?

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    40

    Re: error about multiple definition of vtable and typeinfo

    hello I have the problem like this but had created two class of diff. name and diff method but used d32dbms.h file in both ... . but getting error at each method in that class of Multiple defination ..

    can anyone plz help me with this.

    thank you.

  4. #4
    Registered User
    Join Date
    Mar 2012
    Posts
    40

    Re: error about multiple definition of vtable and typeinfo

    Same cpp file name was reapeted in .mmp file or database would b having two diff. calls. check for any of this.. the problem would be solved.
    thank u.

Posting Permissions

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