NOTE: Using VC2008 compiler, SDL and Windows Mobile 5.0 Pocket PC SDK

Project Configurations

There is ONLY one configuration: Windows Mobile 5.0 Pocket PC SDK (ARMV4I).

I choose WM5 because PPC2003 is enough old and WM6 is too new-there are still many devices with WM5. Thus WM5.0 keeps a balance between portability and new technology. I also think that there is no need to use latest WM SDK for a SDL project, as it doesn’t use OS functions, though.

Folder naming policy

Project Settings->General->Output Directory AND Intermediate Directory =

$(CEVER)\$(ConfigurationName)

All output folders are set to

$(OutDir)\

error PRJ0004 : Could not generate command line for the ‘VCCLCompilerTool’ tool

Try Project Settings->C/C++->General->Debug Information Format = 4, change it to /Zi

This happens after project conversion from older version of VS compiler.

fatal error C1083: Cannot open include file: ‘sys/types.h’: No such file or directory

Or ‘errno.h’

Add preprocessor defines:

_WIN32_WCE=$(CEVER)
UNDER_CE
$(PLATFORMDEFINES)
WINCE
$(ARCHFAM)
$(_ARCHFAM_)

.\Version.rc : fatal error RC1015: cannot open include file ‘winresrc.h’

Project Settings->Resources->General->Preprocessor Definitions=

_WIN32_WCE=$(CEVER)
UNDER_CE
$(PLATFORMDEFINES)

if this doesn’t work, change include statement to

#include “afxres.h”

fatal error LNK1112: module machine type ‘ARM’ conflicts with target machine type ‘X86’

Make sure ALL input libraries AND current project uses these settings

Project Settings->C/C++->Advanced->Compile for Architecture = ARM4 (/QRarch4)

Project Settings->Linker->Advanced->Target Machine = MachineTHUMB

Error message: Microsoft Visual Studio: Unable to start program…

Project Settings->Debugging->Debugger to launch = Smart Device Native Debugger


No Comments to “SDL PocketPC development hints & problems & solutions”  

  1. No Comments

Leave a Reply