Discussion Board

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

    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

    class ConnectionObserver : public MSIPConnectionObserver

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


  2. #2
    Super Contributor
    Join Date
    Jun 2006

    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
    Oslo, Norway

    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