×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2004
    Location
    Greece
    Posts
    15

    Lightbulb array bound is not an integer constant + extra qualification ERROR

    (This thread refers to GCCE release build errors)
    (This thread refers to S60 3rd Edition SDK)
    (This thread refers to Carbide c++ v1.0 Express)

    Hi all,
    I've just set up a new PC for Symbian Development and had that problem.

    I didn't mean to start this new thread but I haven't found any solution in any forum.
    I have found these (at least 3) threads concearning the same problem:

    http://discussion.forum.nokia.com/fo...ad.php?t=88846
    http://discussion.forum.nokia.com/fo...ad.php?t=86387
    http://discussion.forum.nokia.com/fo...ad.php?t=84264

    but none of them concludes to any solution nor had I any reply.

    The application builds normally on debug build but on GCCE release build it shows the formentioned errors even in a "hello world" project created by Carbide Express v1.0.
    Here are the important lines of the error log among several warnings:

    C:/Symbian/9.1/S60_3rd/epoc32/include/e32base.h:2067: warning: 'class MBeating' has virtual functions but non-virtual destructor
    C:/Symbian/9.1/S60_3rd/epoc32/include/d32locd.h:188: error: array bound is not an integer constant
    C:/Symbian/9.1/S60_3rd/epoc32/include/d32locd.h:189: error: array bound is not an integer constant
    C:/Symbian/9.1/S60_3rd/epoc32/include/d32locd.h:355: warning: 'class TPasswordStore' has virtual functions but non-virtual destructor

    and after some more warnings:

    C:/Symbian/9.1/S60_3rd/epoc32/include/coecntrl.h:233: warning: 'class MCoeControlHitTest' has virtual functions but non-virtual destructor
    C:/Symbian/9.1/S60_3rd/epoc32/include/coecntrl.h:494: error: extra qualification 'CCoeControl::' on member 'GetGc'
    C:/Symbian/9.1/S60_3rd/epoc32/include/Eikspane.h:39: warning: 'class MEikStatusPaneObserver' has virtual functions but non-virtual destructor


    There are NO empty spaces on my workspace path
    CTags are installed and path updated
    GNU is installed in a no-empty-spaces path
    Everything is installed in the same drive

    Would highly appreciate any help
    Thanxxx very much on beforehand
    Vassilis
    Last edited by vasilislegakis; 2007-03-17 at 17:20.

  2. #2
    Registered User
    Join Date
    Oct 2004
    Location
    Greece
    Posts
    15

    Thumbs up Re: array bound is not an integer constant + extra qualification ERROR

    The problem is solved by uninstalling everything and reinstalling BUT:

    Installing the sdk LAST meaning after Perl, JAVA and above all IDE.

    I had tried before uninstalling and reinstalling but I left IDE last by false instict.(Ok and by not reading carefully the installation notes...)

    I suppose all the beforementioned threads are resolved by this tip.
    The strange part is that it works fine on other PC's I've configured for Symbian Development but you never know...I'm happy enough to avoid thinking about the whole thing for the next couple of decades.

    I'm sorry for the inconvinience.
    Best Regards
    Vassilis
    Last edited by vasilislegakis; 2007-03-17 at 20:25.

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: array bound is not an integer constant + extra qualification ERROR

    Re-installing everything is an extreme but apparently sometimes helpful solution. I hope you've noticed before installing that a maintenance release of the SDK is available and also that there is a new version of Carbide.c++ Express that you can use.

  4. #4
    Registered User
    Join Date
    Apr 2006
    Location
    Beijing, China
    Posts
    1,175

    Re: array bound is not an integer constant + extra qualification ERROR

    Hi,

    I just encountered the same error and found a solution. My SDK is S60 3rd FP1 SDK and the compiler is GCCE4.2.3.

    Creation Time Description Resource Path Location Type
    1239267103223 error: array bound is not an integer constant[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/d32locd.h] line 179 C/C++ Problem
    1239267103243 error: array bound is not an integer constant[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/d32locd.h] line 180 C/C++ Problem
    After searching on the web, I found an article discussing this problem. The solution is just commenting out the following lines
    Code:
       __ASSERT_COMPILE(_FOFF(TLocalDriveCaps,iSize)%8 == 0);
       __ASSERT_COMPILE(_FOFF(TLocalDriveCapsV3,iFormatInfo.iCapacity) % 8 == 0);
    in this file:
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\d32locd.h

    Note: The S60 3rd MR SDK has the same problem, but with S60 5th Edition v1.0 SDK, no need to comment out these lines. (Why?)
    Way of Simplicity

Similar Threads

  1. Parsing file content
    By hendrawan.ashari in forum Symbian
    Replies: 7
    Last Post: 2007-03-09, 10:41
  2. 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
  3. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11
  4. Help.....I am getting so many Error Messages in VC6
    By ntsing in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-11-21, 12:12
  5. Replies: 0
    Last Post: 2002-09-24, 13:11

Posting Permissions

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