using xlocale to implement std::locale class
Jonathan Wakely
jwakely.gcc@gmail.com
Sat May 7 09:03:00 GMT 2011
On 7 May 2011 04:12, Takeshi Kobayakawa wrote:
>
> 1) The scope (linker name) of xlocale API
> what should be the scope of the symbols of newlocale, freelocale, ... etc.
> function calls? In GNU/Linux, they are __newlocale, __freelocale, ... etc.
> But, I could not get them link in darwin, so I defined like
> #define __newlocale newlocale
> in c++locale_internal.h
> (In gnu/c_locale.h, __gnu_cxx::__uselocale is used. I had to remove
> __gnu_cxx:: scope to get it worked.)
Look in the gnu model at the files
config/locale/gnu/c++_localeinternal.h
config/locale/gnu/c_locale.h
That defines the alternative names so the linker finds them.
More information about the Libstdc++
mailing list