[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined reference to ngettext
From: |
Felix Natter |
Subject: |
Re: undefined reference to ngettext |
Date: |
09 Apr 2002 18:57:05 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Bruno Haible <address@hidden> writes:
> Felix Natter writes:
>
> > but although my glibc 2.1.x doesn't support ngettext, it does not
> > link with libintl:
> >
> > /bin/sh ./libtool --mode=link g++ -o cogarithmetic cogarithmetic.o
> > -lpthread -lmenu -lcurses
> > g++ -o cogarithmetic cogarithmetic.o -lpthread -lmenu -lcurses
> > cogarithmetic.o: In function `write_ex_stats(int, int, int)':
> > cogarithmetic.o(.text+0xc3): undefined reference to `ngettext'
> > collect2: ld returned 1 exit status
> > ...
> > the whole tarball is here:
> > http://home.t-online.de/~fam.natter/cog-training.tar.gz
> > ...
> > checking for GNU gettext in libc... no
> > checking for GNU gettext in libintl... yes
> > checking how to link with libintl... /usr/local/lib/libintl.so -lc
> > -Wl,-rpath -Wl,/usr/local/lib
>
> You need to link with libintl if it is outside glibc. Adding
>
> LDADD = @LTLIBINTL@
>
> to your Makefile.am accomplishes this.
thanks a lot, but shouldn't this be documented in gettextize or in the
gettext-documentation or in gettext.m4, where NEEDSYMBOL is documented ?
I also think that gettextize should tell the user to put intl in SUBDIRS
when --intl is specified (it took me some time to figure this out)
thanks,
--
Felix Natter