Mail Archives: djgpp-workers/2001/12/04/06:30:27
On Tue, 2001-12-04 at 11:46, Pierre Muller wrote:
>
> --Second:
> But I get more errors at link stage:
>
> As I have libintl.a installed,
> the configure uses it and I
> get undefined references to 'dgettext'
> because -lintl does not get added to the
> list of needed libs.
IIRC, Cygwin (and related trees such as binutils/gcc/gdb)
uses it's own autoconf macro for gettext checking; this
results in problems if using a more recent version of
gettext, as iconv probably won't get checked for.
Additionally, it doesn't add -lintl to $LIBS, so it
doesn't get linked in (that, or the Makefile.am files
don't use the right substitution vars; it's been a while
since I checked).
This is fairly typical, since many (most?) systems have
a gettext implementation in their libc and therefore
don't have a problem.
> --Third:
> If I add it manually with LOADLIBES=-lintl
> I still get an error:
> f:/djgpp2000/lib/libintl.a(dcigettext.o): In function `_nl_find_msg':
> dcigettext.c:872: undefined reference to `libiconv'
> f:/djgpp2000/lib/libintl.a(loadmsgcat.o): In function `_nl_init_domain_conv':
> loadmsgcat.c:301: undefined reference to `libiconv_open'
> f:/djgpp2000/lib/libintl.a(loadmsgcat.o): In function `_nl_free_domain_conv':
> loadmsgcat.c:331: undefined reference to `libiconv_close'
>
> Should I load yet another library?
> In which package can I find this library.
Yes, you need -liconv (in licnv16b.zip, I think; not sure)
- Raw text -