×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Setting compile options in mmp file

    I have the following problem using the sdk for symbian 9.1 (3rd edition). I want to set some compile options in the mmp project file.

    In the older sdk I always achived this by adding the following line:
    OPTION GCC -D__SERIES60_20FP2_USER__
    After that I'm able to use this flags in the source code like this:
    #ifdef __SERIES60_20FP2_USER__
    ...
    #else
    #endif

    It seems that this no longer works in the 3rd edition of the sdk. There is no compile error but it seems the variables are not set. Can anybody confirm this or knows a workaround?

    The reason why I want this is because I have different mmp project files for the different versions of the sdk. (The source code I have written is the same for all the differents sdks.)

  2. #2
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: Setting compile options in mmp file

    Do you use an IDE or just command line?

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Setting compile options in mmp file

    I use the command line version
    abld build gcce

  4. #4
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: Setting compile options in mmp file

    OK, sorry no info on that. Carbide.vs has the capability to manage S60 2.x and 3.x projects that share the same code, if that is an option for you.

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

    Re: Setting compile options in mmp file

    And why do not you use the standard MACRO keyword in the MMP? It works in every Symbian SDK.

  6. #6
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    101

    Re: Setting compile options in mmp file

    MACRO can be used in this case as you are not assigning value to the preprocessor macro.

    If you wish to set gcce command line options, use configuration file Gcce.mk at <SDK>\epoc32\tools\compilation_config .

Similar Threads

  1. File reading & writing help, wav file redaing help
    By shubhamlahoti in forum Mobile Java General
    Replies: 6
    Last Post: 2007-06-27, 09:07
  2. in CW mmp file is not necessary, if u hv mcp !!
    By saurbh_g in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-02-23, 07:43
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. MMP file not shown in MsDev Workspace
    By rick.andrews in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2005-01-22, 11:18
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

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