Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User 盎司's Avatar
    Join Date
    Oct 2008
    Posts
    21
    编译工程后出现
    Multiply defined section: CFirstListView::~CFirstListView(void) (??1CFirstListView@@UAE@XZ)in First Unknown1227167039671 5565
    不知道是咋了回事啊!!

  2. #2
    Super Contributor red_shi's Avatar
    Join Date
    Nov 2005
    Posts
    1,968
    Quote Originally Posted by 盎司 View Post
    编译工程后出现
    Multiply defined section: CFirstListView::~CFirstListView(void) (??1CFirstListView@@UAE@XZ)in First Unknown1227167039671 5565
    不知道是咋了回事啊!!
    这个析构函数没有定义?

  3. #3
    Nokia Developer Champion qxiaoyuan's Avatar
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346
    这是多重定义, 你看一下是否析构函数定义在头文件, 并且头文件没有用#ifdef 宏包括, 导致代码被多处include.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  4. #4
    Registered User 盎司's Avatar
    Join Date
    Oct 2008
    Posts
    21
    #ifndef FIRSTLISTVIEW_H
    #define FIRSTLISTVIEW_H

    #include <e32std.h>
    #include <e32base.h>
    #include <aknview.h>
    #include <FirstSettingList.h>

    class CFirstListView : public CAknView
    {
    public:
    ~CFirstListView();
    static CFirstListView* NewL();
    static CFirstListView* NewLC();
    void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, const TDesC8& aCustomMessage);
    void DoDeactivate();
    TUid Id() const;
    void HandleCommandL(TInt aCommand);
    private:
    CFirstListView();
    CFirstSettingList* iSettingList;
    void ConstructL();
    void HandleStatusPaneSizeChange ();
    };
    #endif

  5. #5
    Super Contributor red_shi's Avatar
    Join Date
    Nov 2005
    Posts
    1,968
    楼主在贴出你的cpp看看

  6. #6
    Registered User 盎司's Avatar
    Join Date
    Oct 2008
    Posts
    21
    FirstListView.h代码如上
    还有,我想把错误贴出来,怎么贴图啊?

  7. #7
    Super Contributor r60600's Avatar
    Join Date
    Feb 2004
    Posts
    1,980
    FirstSettingList.h最好也仔细检查一下。

Similar Threads

  1. Carbide.c++_vs3.0.1 and VS 2005 Problem
    By dhamu_b in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2008-08-18, 12:08
  2. multiply defined section
    By mukesh_r_solanki in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-07-17, 09:19
  3. linking error
    By dakosurf in forum Symbian C++
    Replies: 1
    Last Post: 2008-03-27, 22:45
  4. linking error
    By dakosurf in forum Open C/C++
    Replies: 0
    Last Post: 2008-03-27, 09:20
  5. fatal error LNK1169: one or more multiply defined symbols found
    By thinrhino in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-05-22, 19:36

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