Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2005

    Exclamation #include not working (Carbide)??

    When I compile my application (Emulator build) I get an 'undefined identifier' errror against an item in a .cpp file, yet the item is defined in an associated .h file. The .h where the item is defined is #included in the .h of the .cpp where the 'undefined identifier' error is marked up.

    I've also noticed that the .cpp of the 'undefined identifier' source is not listed in with the other .cpp's under the Binaries list '<my_app>_S60_2_6_Emulator_Debug.app' in the projects view.

    What could account for the #include not 'working', if that's the right word for whats happening and why doesn't the error items source file appear in the Binaries list?

    The source .cpp and .h file where the problem item is defined appear to compile without errors.

    Any responses appreciated.

  2. #2
    (Retired) Nokia Developer Admin.
    Join Date
    Jan 2006

    Re: #include not working (Carbide)??

    If this is a compiler error then look for spelling errors, or an extern identifier that isn't declared.
    I think this (as most Udefined identifiers are) is a linker error and the problem is you are calling a function that is not defined anywhere only declared in a header file. You may be missing a library or a source file in your project.

    One other thing is inlined functions need to be defined in the translation unit, so if you have an inlined function declared but it is not defined in the header then you get undefined identifiers.



Similar Threads

  1. Problem to compile series60 3rd
    By asmobease in forum Symbian
    Replies: 9
    Last Post: 2006-09-04, 15:15
  2. open a view by clicking the listbox item
    By kirtij in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2006-02-24, 15:55
  3. Replies: 6
    Last Post: 2005-10-03, 05:51

Posting Permissions

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