Boost logo

Boost Users :

Subject: Re: [Boost-users] How should I define a wchar_t type for use in mbtowc? [Android] [Serialization]
From: Stefan Strasser (strasser_at_[hidden])
Date: 2013-04-01 11:18:39


Am 01.04.2013 16:41, schrieb Wesley Paugh:
> I'm attempting to port Serialization code to Android. Android-ndk-r8d
> does not have mbtowc implemented, which Serialization apparently uses,
> somewhere. I would like to recreate this function myself, rather than
> find another Serialization library entirely or write one myself.
>
> The function leverages the wchar_t type, which also does not appear to
> built into android-ndk-r8d. What is boost serialization expecting this
> type to be? Can I grab an implementation of it from off of a shelf
> somewhere?

do you need wchar support? are the following macros defined on your
platform?

BOOST_NO_CWCHAR
BOOST_NO_INTRINSIC_WCHAR_T
BOOST_NO_STD_WSTRING

Serialization supports platforms without wchar support. Android seems to
have no support for wchar in some versions and partial support in
others. That you are using a version with partial support could be the
reason the macros above aren't defined for you.
Disabling wchar support by defining the macros above yourself might
solve your problem.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net