Re: PLATFORM DEFINE
- From: r_z_aret@xxxxxxxxxxxx
- Date: Tue, 18 Dec 2007 13:16:37 -0500
On Tue, 18 Dec 2007 13:46:19 +0100, "Miky" <miky@xxxxxxxxxxxxxxxx>
wrote:
Hi All,
How do I know the platform define?
I'm not quite sure what you are asking. I'll try to provide info that
will answer, or at least be close.
If you are using the IDE that comes with one of the Microsoft
compilers, then when you choose a platform, the IDE chooses the
corresponding SDK and sets the macros appropriately. For eVC, you can
see these either of two ways:
1) Project -> Settings -> C/C++ -> Preprocessor -> Project Options
2) In Project -> Settings -> C/C++ -> Customize uncheck "Suppress
startup banner...", and then look at the first part of the compiler
output when you compile.
If you are using some other build system (perhaps nmake), then you
need to define the appropriate macros. Using one of the techniques I
just described will show you which macros you need to define. But at
least some are pretty easy to figure out from the header (.h) files.
For nmake, you can use -d arguments to define macros. If you need help
setting macros in another build environment, please ask so someone
_else_ can help (I probably won't know).
I have found in setup.h file on the wxwidget package these are define:
#if (_WIN32_WCE >= 400) && !defined(wxNO_RTTI)
#pragma comment(lib,"ccrtrtti.lib")
#endif
#if defined(__WINCE_STANDARDSDK__)
// DoDragDrop:
#pragma comment(lib,"olece400.lib")
#elif defined(__POCKETPC__)
// PocketPC build:
// DoDragDrop:
#pragma comment(lib,"ceshell.lib")
#pragma comment(lib,"aygshell.lib")
#elif defined(__HANDHELDPC__)
// Handheld PC builds. Maybe WindowsCE.NET 4.X needs another symbol.
#pragma comment(lib,"ceshell.lib")
#elif defined(__SMARTPHONE__)
// Smartphone build:
#pragma comment(lib,"ceshell.lib")
#pragma comment(lib,"aygshell.lib")
#else
#error "Unknown SDK, please fill-in missing pieces"
#endif
My SDK that I read on VS2005 is NAV53_v14 (ARMV4I).. What is the my define
name ?
Thanks
Miky
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.
- References:
- PLATFORM DEFINE
- From: Miky
- PLATFORM DEFINE
- Prev by Date: Re: network access and WiFi control
- Next by Date: Re: network access and WiFi control
- Previous by thread: PLATFORM DEFINE
- Next by thread: Re: network access and WiFi control
- Index(es):
Relevant Pages
|
Loading