×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    Undefined identifier

    Hi all,
    i am developing an application in which in ConstructL i write BaseConstructL(R_LOGINSCREENVIEW),and in resource file i wrote..

    //----------------------------------------------------
    //
    // RESOURCE FOR LOGIN SCREEN VIEW
    //
    //----------------------------------------------------
    //
    RESOURCE AVKON_VIEW r_loginscreenview // R_LOGINSCREENVIEW
    {

    menubar = r_loginscreenview_menubar;
    cba = r_softkeys_option_hide; //R_SOFTKEYS_OPTION_HIDE;
    }

    //----------------------------------------------------
    //
    // LOGIN SCREEN VIEW MENUBAR
    //
    //----------------------------------------------------
    //

    RESOURCE MENU_BAR r_loginscreenview_menubar
    {
    titles =
    {
    MENU_TITLE { menu_pane = r_loginscreenview_menu; txt = "View"; }
    };
    }

    RESOURCE MENU_PANE r_loginscreenview_menu
    {
    items =
    {
    MENU_ITEM { command = ESelect; txt = qtn_accout_select; },
    MENU_ITEM { command = EEagleTermsAndConditions; txt = qtn_eagletermsandconditions ; },
    MENU_ITEM { command = EEagleHelp; txt = qtn_eaglehelp; },
    MENU_ITEM { command = EEikCmdExit; txt = qtn_eagle_exit; }
    };
    }

    but it is given error that Undefined identifier 'R_LOGINSCREENVIEW'

  2. #2
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Undefined identifier

    Include your .RSG file

  3. #3
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    Re: Undefined identifier

    I have already included .rsg,hrh but it is giving the same error

  4. #4
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Undefined identifier

    try to clean and rebuild your project, also make sure that your resource file is compiled successfully.

  5. #5
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    Re: Undefined identifier

    Hi,
    The error is as it is..
    i have checked all things,checked all files properly,clean reallyclean...
    all the things but error is still coming
    plz help me out...

  6. #6
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: Undefined identifier

    hi ab,

    if u are building ur app frm command promt then run command
    abld reallyclean......so that it will clean all your resources.

    regards,
    Bharat

  7. #7
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: Undefined identifier

    hi ab,

    now search ur .rsg file in epoc32 then open it with notepad and see whether that resourse is present in this file with the mapped address or not?....if not then ur resourse file compilation is not successful.if yes then check that same is included in ur .cpp or not?

    regards,
    Bharats

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Undefined identifier

    I'll bet that you have some resource compiler errors too but you ignore them ...
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    Re: Undefined identifier

    Quote Originally Posted by bharats View Post
    hi ab,

    now search ur .rsg file in epoc32 then open it with notepad and see whether that resourse is present in this file with the mapped address or not?....if not then ur resourse file compilation is not successful.if yes then check that same is included in ur .cpp or not?

    regards,
    Bharats
    Hi,
    i follow the Bharat's instructions,i have added the three file in my project,Loginscreen,login screen container and CustomButton,but address were not in my .rsg file then i checkd in epoc32,n that were there,i copied the same in my project's .rsg then clean now it is giving the error

    make[1]: *** No rule to make target`\Symbian\Carbide\workspace\Source\Build\CCustomButton.h', needed by `\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\Carbide\workspace\Source\Build\EAGLE\WINSCW\UDEB\LoginScreenViewContainer.o'. Stop.

    i checked that path but my CustomButton.o and LoginScreenContainer.o were not there,now what shoud i do for this...
    Last edited by ltomuta; 2007-11-27 at 07:26. Reason: Formatting

  10. #10
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: Undefined identifier

    hi ab,

    first i would like to clear you that .rsg file is being created after compiling your .rss file.....so dont add anything manually into .rsg file. as you are saying that perticular resourse which you have added in .rss file is not present in .rsg means your .rss file has some errors.
    the error discription you provided here seems CCustomButton.h is missing.

    regards,
    bharat

  11. #11
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: Undefined identifier

    plz post your complete error discription.....also mention which sdk and ide u r using.....

    regards,
    bharat

  12. #12
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    Re: Undefined identifier

    Hi, Bharat
    I am using 9.1 and ide is carbide

    and error is

    make[1]: *** No rule to make target `\Symbian\Carbide\workspace\Source\Build\CCustomButton.h', needed by `\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\Carbide\workspace\Source\Build\EAGLE\WINSCW\UDEB\LoginScreenViewContainer.o'. Stop. Source line 0 1196149213105 6480

    and if i dont add address manuaaly in rsg then it gives undefined idetifier'R_LOGINSCREENVIEW'

  13. #13
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Undefined identifier

    You dont need to add things manually in the .RSG file, it is created after compiling the Resource File i.e .RSS file,

    Have you successfully compiled your .RSS file?

  14. #14
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    Re: Undefined identifier

    Hi Vasant,

    You are right,bharat told me that..
    but problem is that why my resource file is not compile succefully,why it is giving error undefined identifier R_LOGINSCREENVIEW..
    i added all header files,but i dont know...

  15. #15
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    350

    Re: Undefined identifier

    For RSG confusion it helps to do global search for your RSG file and delete them all (sometimes (when compiling for GCCE and WINSCW) they get created into 2 different places (into Symbian and into your project folders)). Then do Rebuild.
    "I only know that I know nothing." (Socrates)

Similar Threads

  1. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 12:38
  2. carbidec++ helloworld project problem
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-03-11, 12:40
  3. Replies: 3
    Last Post: 2007-01-18, 11:27
  4. carbide build problem help please
    By berkcekisbas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-26, 19:41
  5. Whats missing?
    By imrank in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-08-28, 07:22

Posting Permissions

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