This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
  config/locale/gnu/c++_localeinternal.h
  config/locale/gnu/c_locale.h
That defines the alternative names so the linker finds them.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]