[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No _Xsetlocale() in XFree86 4.0.1



>>>>> In <[🔎] 20001113194142.A17875@links.nectec.or.th> 
>>>>>	Theppitak Karoonboonayanan <thep@links.nectec.or.th> wrote:
>> Hello,

>> I'm using xfree86 4.0.1-3 from woody. Recently, I compiled an X program
>> which uses X locale setting and the linker just complained the undefined
>> referencing to "_Xsetlocale".

>> $ gcc -DX_LOCALE xlctest.c -L/usr/X11R6/lib -lX11

 Why do you use -DX_LOCALE ?

 Glibc2 has locale functions, so normaly libX11 compiled without
`#define X_LOCALE' on glibc2 environmet. So, libX11 does not have
_Xsetlocale of cause.

 You don't need to use -DX_LOCALE with glibc2.

-- 
ISHIKAWA Mutsumi
 <ishikawa@linux.or.jp>, <ishikawa@debian.org>, <ishikawa@redhat.com>



Reply to: