This is the mail archive of the
mailing list for the libstdc++ project.
Re: using xlocale to implement std::locale class
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
That defines the alternative names so the linker finds them.