This page was last modified 15:48, 6 March 2008.
How compile conditionally based on SDK
From Forum Nokia Wiki
It isn’t immediately obvious what SDK is being used from a code perspective. There are some macros defined for you like __SERIES60_31__, __SERIES60_32__ etc. but these aren’t available for all platforms and from all locations (mmp, bld.inf).
The solution is to define your own. Make a file called “blddef.h” and put whatever #defines in it you like and put it in epoc32\include. You can now include this in your source, mmp and bld.inf. Note, for the mmp and bld.inf, you need to use #include “blddef.h” and for the source files you need to use #include<blddef.h>
Then, you can just use #if defined(xxx) as normal.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| S60 3rd FP1: How to get notified of headset connection (cable) | lapetron | General Symbian C++ | 6 | 2007-12-17 18:16 |
| Compile gpac on symbian | gacon | General Symbian C++ | 3 | Today 09:58 |
| mmp #define and #include in Carbide.vs | douglas-access | Symbian Tools & SDKs | 10 | 2005-12-13 14:10 |
| S60 2nd FP2 MIDP SDK error | saintfalcon | Mobile Java Tools & SDKs | 9 | 2007-01-23 18:45 |
| [Compile Error] .rsg file can not be opened | SymNLeaner | Symbian Tools & SDKs | 6 | 2007-03-01 07:35 |
