×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    illegal use of incomplete class

    Hello list,

    I get the compilation error "illegal use of incomplete struct/union/class" when I try to derive from MSIPObserver and MSIPConnectionObserver. The syntax of the derivation is as follows

    class Observer : public MSIPobserver
    {
    //definition
    };

    class ConnectionObserver : public MSIPConnectionObserver
    {
    //definition
    };

    Is this usage correct? I am unsure about what is causing the above errors. Any tips would be appreciated.

    TIA
    Vin

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: illegal use of incomplete class

    it seems to be okay..you need to give defination of all pure virutal function in derive class.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: illegal use of incomplete class

    Incomplete means that something is forward declared only. For inheritance, you have to #include the actual header file declaring this class.

Similar Threads

  1. Replies: 4
    Last Post: 2010-10-13, 09:08
  2. Replies: 1
    Last Post: 2010-05-19, 13:36
  3. Replies: 7
    Last Post: 2010-03-31, 10:32
  4. Replies: 2
    Last Post: 2009-09-15, 07:15
  5. illegal use of incomplete struct/union/class 'CSmsHeader'
    By raysky in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-08-20, 04: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
  •  
×