×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    40

    Unhappy HELP!! Identifier Expected?

    This is a Carbide Express problem:
    I get a compile time problem "Identifier Expected" for the first _LIT in the .cpp source extract below. If I move the line to the .h file I get the SAME 'error' for the 2nd _LIT in the list. If I move all the _LIT's to the .h I get a DIFFERENT error on the next line of code (not shown).

    I only have this one error in my build and can't move forwards without fixing it. I don't think its the code at fault 'cos the 'error' just seems to move through the .cpp file into previously correctly compiled code.

    Any help would be greatly appreciated.

    // table 'Log' name and column constants
    _LIT (KLogIndexName, "LogIndex"); // table index
    _LIT (KLogTable, "Log"); // table name

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

    Re: HELP!! Identifier Expected?

    Check your code for missing semicolons or closing parentheses.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    40

    Re: HELP!! Identifier Expected?

    Fantastic wizard hu!! The problem was a missing semicolon on the last brace of the .h file that was a #include immediately before the 'error'. Thanks for taking the time to reply, as a newbie to C++ and Symbian there is a very steep mountain to climb, and simple mistakes are the order of the day!!

Similar Threads

  1. Replies: 3
    Last Post: 2007-01-18, 11:27
  2. Carbide.vs 2.01 Registration Problem
    By baykal in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2006-12-22, 16:55
  3. help !! about SIP errors
    By wgarnett in forum Symbian
    Replies: 3
    Last Post: 2006-05-17, 05:30
  4. Linkage error (Urgent)
    By waelali in forum Symbian Tools & SDKs
    Replies: 8
    Last Post: 2006-02-07, 10:20

Posting Permissions

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