Well, iostream and many other libraries are not included in the HPC SDKs, so instead you need to compile STLport and link your application with it to be able to use those libraries. Unfortunately, the latest STLport does not build for CE 2.11 - only CE 3.0.
1. Download the latest stlport from
here (5.2.1 as of this writing
). Unpack it.
2. Copy the stddef.h file from the HPC Pro SDK include directory to the hpc2000 SDK include directory
(hpc2000's SDK doesn't inclde stddef.h for some reason and stlport needs it
).
3. Open a command prompt. Either type: "set PLATFORM=hpc2000"
(without quotes
) or edit the EVC platform/cpu batch file to default to hpc2000 instead of "ms pocket pc".
4. Call the batch file for the platform/cpu you wish to build for
(i.e. "C:\Program Files\Microsoft eMbedded Tools\EVC\WCE300\BIN\WCEARM.BAT"
)
5. Change to the STLport directory
(where configure.bat resides
) and type: configure.bat evc3
6. Follow the instructions on the screen
(cd to build/lib and type: "nmake clean install"
)
7. Finally, link your application with the appropriate static or dynamic lib from the lib\evc3-
(cpu
)\ directory
I was able to build successfully for ARM, MIPS, and X86.
Edited by mscdex 2009-09-06 3:00 PM