PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Questions on boost.

http://www.boost.org

I was curious if anyone uses this? If so;

- any problems using it in Pocket PC development?
- any comments/opinions on it in general?

Thanks in advance.
wyrd wrote:http://www.boost.org

I was curious if anyone uses this? If so;

- any problems using it in Pocket PC development?
- any comments/opinions on it in general?

Thanks in advance.


I love boost and use it often... The main issue is that it uses exception handling (i.e. it throws them) and that simply doesn't work on the PPC.

What I usually do when using pieces of it (boost::threads and boost pointers mostly), is simply replace the throw() statements with asserts().
The main issue is that it uses exception handling (i.e. it throws them) and that simply doesn't work on the PPC.


i know that the EVC compiler is not capable of compiling all of boost (hardly any compiler is), but why would it fail because of exception handling?

DANIEL
drgoldie wrote:i know that the EVC compiler is not capable of compiling all of boost (hardly any compiler is), but why would it fail because of exception handling?


Simply because C++ exceptions aren't supported on the PPC.
well, as far as i know they are.
at least under PPC2003...

DANIEL
drgoldie wrote:well, as far as i know they are.
at least under PPC2003...

DANIEL


They aren't. I don't remember the exact issue, but basically it's something like "C++ exception handling wasn't compiled in the kernel image". Heard it was a mistake and because of it, exceptions won't work properly even on PPC2003.

I know a company (forget where) put out a work around on their web site. But it is too much complicated and your application will only work on PPC2003... Something you properly don't want.
you mean this one here:
http://www.entrek.com/rttipatch.htm
it fixes the (linking) problem with typed exceptions.

i ported xerces to PPC. using this patch it worked fine. before i knew about this patch i compiled for "STANDARDSDK" instead for "POCKET PC 2003", which does not have the rtti problem anyway...

but i agree that both are not perfect solutions.
it would be fine if MS would fix such well known bugs, but maybe we can hope for the PPC2004 release. :)

bye,
DANIEL