×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Question GCCE compiler solutions

    Hi all ,

    While I was surfing FN reading about the difference between the 2nd and 3rd edititon concepts I hit this article that talks about GCCE compiler :
    http://wiki.forum.nokia.com/index.php/GCCE

    And I quote :
    This page was last modified on 11 September 2007, at 16:33.

    GCCE 3.4.3 does not produce right description for the parent class "CAknAppUi" which has quite some inheritance and data members.

    04424c: 109 = 0x13 (DW_TAG_structure_type)
    04424d: DW_AT_sibling 0x21137 (0x4426a)
    044251: DW_AT_name CAknAppUi
    044255: DW_AT_declaration 0x1
    044256: 12 = 0x2e (DW_TAG_subprogram)
    044257: DW_AT_external 0x1
    044258: DW_AT_name CAknAppUi
    04425c: DW_AT_type 0x21137 (0x4426a)
    044260: DW_AT_artificial 0x1
    044261: DW_AT_declaration 0x1
    044262: 9 = 0x5 (DW_TAG_formal_parameter)
    044263: DW_AT_type 0x21137 (0x4426a)
    044267: DW_AT_artificial 0x1
    044268: 0 null
    044269: 0 null
    Using a newer version of GCCE, the 2007q1-21 release of Sourcery G++ Lite (GCC 4.2.0) from Codesourcery.com solves this problem. However, the new version of GCCE does not work directly with the SDK (S60 3.1), issuing these errors:

    <------------------
    /Symbian/9.2/S60_3rd_FP1/EPOC32/include/aknquerydialog.h extra qualification
    'CAknQueryDialog::' on member 'FindControlOnAnyPageWithControlType'
    S60_Gui_01 line 462

    /Symbian/9.2/S60_3rd_FP1/EPOC32/include/d32locd.h
    array bound is not an integer constant
    S60_Gui_01 line 179
    ------------------->
    To fix the compile errors:

    1. Modify the file

    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\d32locd.h
    by commenting out these lines:

    __ASSERT_COMPILE(_FOFF(TLocalDriveCaps,iSize)%8 == 0);
    __ASSERT_COMPILE(_FOFF(TLocalDriveCapsV3,iFormatInfo.iCapacity) % 8 == 0);
    2. Also modify the file

    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\aknquerydialog.h
    by changing the line:

    CCoeControl* CAknQueryDialog::FindControlOnAnyPageWithControlType(...) const;
    to

    CCoeControl* FindControlOnAnyPageWithControlType(...) const;

    And when I opened these files in my S60 3rd Ed FP1 SDK , I found these lines Uncommented and Unmodified , So .. Do I have to change it or there's been other fixes for these errors so I don't have to Comment and Modify these files ????



    Many thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: GCCE compiler solutions

    I donot think you have to modify anything . you can just use as it is.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: GCCE compiler solutions

    Generally you need to fix problems when they appear.

    Read a bit more carefully:
    Quote Originally Posted by your quote
    Using a newer version of GCCE, the 2007q1-21 release of Sourcery G++ Lite (GCC 4.2.0) from Codesourcery.com solves this problem. However, the new version of GCCE does not work directly with the SDK (S60 3.1), issuing these errors
    So these errors appear if you replace the default GCCE compiler with a newer one.

  4. #4
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Re: GCCE compiler solutions

    Hi wizard_hu ,

    So these errors appear if you replace the default GCCE compiler with a newer one.
    I'm still new - very new - in SymbianC++ world , so ... Should I make these modifications in the GCCE that comes with the S60 3.1 SDK or not ??? or should I replace it with the release of Sourcery G++ to avoid these errors ???

    And I feel confused from this quotation , it says
    Using a newer version of GCCE, the 2007q1-21 release of Sourcery G++ Lite (GCC 4.2.0) from Codesourcery.com solves this problem
    and then it says :

    However, the new version of GCCE does not work directly with the SDK (S60 3.1), issuing these errors
    So what I'm suppose to do ??!!


    Many thanks in advance.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: GCCE compiler solutions

    The SDK works as it is installed. You would have to modify it, if you download an other GCCE variant from the CodeSourcery site.

  6. #6
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Re: GCCE compiler solutions

    Many thanks Wizard_hu_ , skumar_rao for your reply . it's really appreciated.

Similar Threads

  1. How to compile assembly code using GCCE compiler ?
    By Dipakbaviskar in forum Symbian
    Replies: 3
    Last Post: 2009-07-15, 08:53
  2. a strange complile error using the gcce compiler
    By daiqingping in forum Symbian
    Replies: 2
    Last Post: 2009-03-12, 10:14
  3. Replies: 0
    Last Post: 2008-07-17, 08:18
  4. GCCE Compiler and Optimisation Level?
    By mariosas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2007-02-23, 07:24
  5. Replies: 0
    Last Post: 2005-11-16, 09:21

Posting Permissions

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