[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined reference to ngettext
From: |
Bruno Haible |
Subject: |
Re: undefined reference to ngettext |
Date: |
Tue, 9 Apr 2002 13:11:02 +0200 (CEST) |
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.
Bruno
- Re: undefined reference to ngettext,
Bruno Haible <=