×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    22

    undefined identifier 'CEikApplication'

    Hi I am new to symbian,
    I am trying to create a simple hello word application that would work on both 5th edition and symbian 3 devices.
    when i build the application for 5th edition (Emulator Debug WINSCW s60 5th edition sdk v1.0) it builds with no errors but when i change configuration and build it for symbian 3 (Emulator Debug WINSCW nokia symbian3 sdk v1.0) i get error undefined identifier 'CEikApplication' in HelloBothDocument.h class at line

    static CHelloBothDocument* NewL(CEikApplication& aApp);

    (My app name is HelloBoth)

    i am stuck and don't know what is wrong actually please help....

    Thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: undefined identifier 'CEikApplication'

    As the error says "undefined identifier" which means the system is not able to find the declaration of CEikApplication. So, check the SDK and include the header file name in your class where it is used.

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    22

    Re: undefined identifier 'CEikApplication'

    i included header eikapp.h for CEikApplication but problem still persists

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: undefined identifier 'CEikApplication'

    The header files (inside include folder) are at some other path than in the earlier SDK's. So, we need to include those new paths via SYSTEMINCLUDE statement in the .mmp file. I don't exactly recall the correct path but you can check as I don't have Symbian^3 access right now.

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    22

    Re: undefined identifier 'CEikApplication'

    i have done that

    SYSTEMINCLUDE \epoc32\include\mw

  6. #6
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: undefined identifier 'CEikApplication'

    Hello,
    i have no experience with emulators, only devices, but all my multiplatform projects include APP_LAYER_SYSTEMINCLUDE as first line in .mmp, so that i can easily compile them for Symbian^3 with no other changes. You could give it a try.
    You could also take a look at this link:
    http://library.developer.nokia.com/i...7A766C39A.html
    (open it twice)
    Regards
    pg
    Last edited by pavarang; 2012-07-24 at 10:50. Reason: added link

  7. #7
    Registered User
    Join Date
    Jul 2012
    Posts
    22

    Re: undefined identifier 'CEikApplication'

    Its working

    Thank You !!!

Similar Threads

  1. Undefined Identifier
    By ASP-NewBie in forum Symbian
    Replies: 5
    Last Post: 2009-03-07, 15:42
  2. undefined identifier, why?
    By javatite in forum Symbian
    Replies: 7
    Last Post: 2009-01-22, 20:32
  3. undefined identifier??
    By symbian_beginner in forum Symbian
    Replies: 26
    Last Post: 2008-10-22, 08:55
  4. HELP! UNDEFINED iDENTIFIER!!
    By joseph.m in forum Symbian
    Replies: 26
    Last Post: 2008-07-21, 06:30
  5. undefined identifier!
    By jignasha in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 11
    Last Post: 2006-07-12, 09:09

Posting Permissions

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