Subject: [B20] linking gettext-0.10 ?
From: [email-masked] (Christine Pourcelot)

3 Dec 1998 08:59:27 -0800
Message-ID: <[email-masked]>
To: [email-masked]

Hi there,
I've now (after my problems while compiling code with SOCKET - thanks for your help -) some problem while linking gettext library :

gcc  -o msgfmt msgfmt.o open-po.o po-gram.gen.o po-hash.gen.o po-lex.o po.o str-list.o ../intl/libintl.a ../lib/libnlsut.a ../intl/libintl.a ../lib/libnlsut.a 
.../lib/libnlsut.a(printf-prs.o): In function `parse_printf_format':
/gettext-0.10/lib/printf-parse.h:138: undefined reference to `__mb_cur_max'
/gettext-0.10/lib/printf-parse.h:138: undefined reference to `__mb_cur_max'
collect2: ld returned 1 exit status
make[1]: *** [msgfmt] Error 1
make: *** [all-recursive] Error 1

so I changed the code in printf-parse like this :
/*#ifndef MB_CUR_MAX*/  <-------------------
# define MB_CUR_MAX (sizeof (long))
/*#endif*/              <-------------------

but, is that the correct solution ?

Thanks for help
Regards
[email-masked]

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".