Using boost with windows mobile 5 or 6.

I'm currently trying to use boost in my Windows Mobile 5/6 (aka WinCE) project and I'm having some real problems. Note the project is a port of a C++ library that is currently used in a Windows application and a Linux application. First let me say I'm using boost 1.37 and Visual Studio 2005 (VC 8), I'm not currently using STLPort. The specific libraries I'm trying to use are Thread, State machine and to some extent Date Time (mostly because Thread makes use of date_time) I'm not finding much of concrete info on how to go about doing thiss. The most help has come from the VeecoFTC regression build setup but that just got me to the point of building the boost library for the thread project. However, when I try to use thread in my project I run into problems specificly: * Wince does not implement std::localtime or std::gmtime which are used by the boost versions of localtime and gmtime in c_time.hpp. (Thread appears to depend on this via the date_time library) * Wince does not implement the standard library file locale. Most of the problems caused by this are solved be defining BOOST_NO_STD_LOCAL however the files compare.hpp and replace.hpp in boost/algorithm/string/ both don't respect the BOOST_NO_STD_LOCAL and they use std::locale a lot. Has anyone else gotten round these problems and if so what did you do? I've never been clear on why many people appear to be using STLPort with boost with winCE (or at least the VeecoFTC build is) is that something I should be doing? If so can I do it just for my WinCE builds? Does anybody know if I'd have more luck with boost 1.39 or even upgrading to Visual Studio 2008 (VC 9)? Thanks Matt Schuckmann

Matt Schuckmann wrote:
I'm currently trying to use boost in my Windows Mobile 5/6 (aka WinCE)
me too
project and I'm having some real problems.
me too
Note the project is a port of a C++ library that is currently used in a Windows application and a Linux application.
First let me say I'm using boost 1.37 and Visual Studio 2005 (VC 8), I'm not currently using STLPort.
The specific libraries I'm trying to use are Thread, State machine and to some extent Date Time (mostly because Thread makes use of date_time)
I'm not finding much of concrete info on how to go about doing thiss.
This has details and how far I've been able to get: news://news.gmane.org:119/h11gq8$mur$1@ger.gmane.org
The most help has come from the VeecoFTC regression build setup but that just got me to the point of building the boost library for the thread project. However, when I try to use thread in my project I run into problems specificly: * Wince does not implement std::localtime or std::gmtime which are used by the boost versions of localtime and gmtime in c_time.hpp. (Thread appears to depend on this via the date_time library)
I got thread to build but haven't actually tried using it. I probably hacked those out... don't remember. We will need an implementation.
* Wince does not implement the standard library file locale. Most of the problems caused by this are solved be defining BOOST_NO_STD_LOCAL however the files compare.hpp and replace.hpp in boost/algorithm/string/ both don't respect the BOOST_NO_STD_LOCAL and they use std::locale a lot.
I don't know if I didn't see this because I'm not using the stuff that calls it yet
Has anyone else gotten round these problems and if so what did you do? I've never been clear on why many people appear to be using STLPort with boost with winCE (or at least the VeecoFTC build is) is that something I should be doing? If so can I do it just for my WinCE builds?
Not 100% sure, but I think even with latest CE, STLport might have more of standard. Possibly iostreams.
Does anybody know if I'd have more luck with boost 1.39 or even upgrading to Visual Studio 2008 (VC 9)?
Thanks Matt Schuckmann

Andrew Schweitzer wrote:
This has details and how far I've been able to get: news://news.gmane.org:119/h11gq8$mur$1@ger.gmane.org
I'm not sure that link works... If you search for: "[wince] Building Boost for Windows CE... some progress and problems..." in gmane.comp.lib.boost.build you should find the thread.

Hi Andrew, thanks for the input. I've gotten Thread to build and even link an I think run. I'll go into all the gory details later when I know it all works. One of the things I had to do was provide my own implementation of std::localtime and std::gmtime since windows ce doesn't implement either of these "Standard" functions. I had to do this because the Thread library depends heavily on the date_time library and that library depends on these two functions. Right now I'm at the point where my implementation of localtime isn't working right and causes an exception from the date_time library. I basically copied my implementations of localtime and gmtime from the OpenTimeCE library but I had to massage them a little and apparently I didn't do it right. If anybody involved with the boost::date_time library knows about this problem and can provide input I'd greatly appreciate it. Thanks, Matt Schuckmann Andrew Schweitzer wrote:
Andrew Schweitzer wrote:
This has details and how far I've been able to get: news://news.gmane.org:119/h11gq8$mur$1@ger.gmane.org
I'm not sure that link works...
If you search for: "[wince] Building Boost for Windows CE... some progress and problems..."
in gmane.comp.lib.boost.build you should find the thread.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Andrew Schweitzer
-
Matt Schuckmann