Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User vincent.lee's Avatar
    Join Date
    Jan 2008
    Posts
    15
    Hi,All
    I have a problem when I build my project(.dll) which have a main() entry in carbide v1.3 as Phone release GCCE (s60 3nd).
    Everything is good when I build it as Emultor debug.

    The error:
    Code:
    initializer element is not constant[/Symbian/9.2/S60_3rd_FP1_2/EPOC32/include/e32def.h]
    The console details

    Code:
    /Symbian/9.2/S60_3rd_FP1_2/EPOC32/include/e32def.h:2804: error: initializer element is not constant
    In file included from /GameUI/include/CGameUI_conf.h:5,
                     from /GameUI/include/CGameUI_Canvas.h:4,
                     from /GameUI/samples/Tetris/Tetris.h:5,
                     from /GameUI/samples/Tetris/tetris.c:9:
    /Symbian/9.2/S60_3rd_FP1_2/EPOC32/include/e32def.h:2804: error: initializer element is not constant

    When I entry what the error point to,It is

    Code:
    static const char* const KSuppressPlatSecDiagnostic = KSuppressPlatSecDiagnosticMagicValue;
    in e32def.h

    can you tell me why? Thank you very much!

  2. #2
    Registered User vincent.lee's Avatar
    Join Date
    Jan 2008
    Posts
    15
    can anyone help me?

  3. #3
    Nokia Developer Moderator Symbian_Neil's Avatar
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,147
    Quote Originally Posted by vincent.lee View Post
    can anyone help me?
    Just taking a very wild guess coz am not sure, but it might be due to capability issue. so thats one of the things that I would have checked
    - Neil R.Bhasme -

    Twitter: @Symbian_Neil

  4. #4
    Registered User laa-laa's Avatar
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    Symbian_Neil: Nothing to do with platform security, even though the constant name would imply it.

    The issue is that the compiler is in C mode (because it's compiling tetris.c) but e32def.h is a C++ header file and does not compile in C mode.

    Lauri

Similar Threads

  1. Building library fails with GCCE? (Carbide 1.3)
    By pailes in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-03-12, 12:06
  2. Error building Dhrystone as "Phone Release (GCCE) [S60_3rd_FP1]"
    By rhobincu in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2007-09-27, 13:13
  3. Problem with const global variables in GCCE build
    By xunhuan in forum Symbian C++
    Replies: 7
    Last Post: 2007-07-23, 07:15
  4. Carbide.C++ Express - HelloCarbide build problem
    By nokiapaul in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-07-09, 12:54
  5. I can't reinstall PC Suite Support into my phone
    By rulirahm in forum PC Suite API and PC Connectivity SDK
    Replies: 3
    Last Post: 2006-06-12, 08:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved