×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2006
    Location
    Prague, The Czech Republic
    Posts
    142

    Are there any useful preprocessor directives in Symbian?

    Hello,

    I am now facing a quite tedious task of porting an application to at least 4 types of Symbian devices: Series 60 2nd ed FP2, Series 60 2nd ed FP3 , Series 80 and Series 60 3rd Ed. All these symbian devices vary in their APIs.

    Are there any preprocessor directives in the SDKs that would help me writing code for all of them? Something like _SERIES_80_? I know only of _DEBUG and macros defined in System macros.

    I believe that existence of such macros would help developers a lot, since the fragmentation of Nokia Symbians is significant.

    Thank you

    Marian Kechlibar
    Prague, CZ

  2. #2
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: Are there any useful preprocessor directives in Symbian?

    You can define your own macros in the mmp file:

    Code:
    MACRO SERIES_80
    and use it in your source files. I'd also recommend you use separate mmp files for each platform.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: Are there any useful preprocessor directives in Symbian?

    BTW some macros defined by the system are

    __SYMBIAN32__
    __GCC32__
    __EPOC32__
    __MARM__
    __WINS__

    (latest two allow to differentiate between target and emulator builds)

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: Are there any useful preprocessor directives in Symbian?

    For recognizing 3rd ed., you can use the EKA2 (Epoc Kernel Architecture 2) macro in CodeWarrior (but not in Carbide), and something like __S60_V30__ or __S60_V3X__ in Carbide (I do not remember exactly, but you can identify it in the command line -D). However the latter symbols are not present in CodeWarrior, and they cannot be used in the MMP files.

Similar Threads

  1. Current Symbian Development Opportunities...!!
    By mobile2004 in forum Symbian
    Replies: 0
    Last Post: 2005-01-17, 17:58
  2. Replies: 0
    Last Post: 2004-05-21, 11:16
  3. Replies: 2
    Last Post: 2004-05-08, 09:09
  4. Global Symbian Development Opportunities *High Importance*
    By sara.lindsay in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-05-07, 12:17
  5. Replies: 0
    Last Post: 2004-05-07, 11:45

Posting Permissions

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