[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined reference to ngettext
From: |
Felix Natter |
Subject: |
undefined reference to ngettext |
Date: |
23 Mar 2002 21:52:02 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
hi,
I am using gettext 0.11.1 (installed from source to /usr/local), and I
upgraded my project to 0.11.1 with `gettextize -f -c --intl'. I
followed the instructions: I created po/Makevars, and I deleted the
old aclocal.m4 and generated the new one with "aclocal -I m4", then I
ran automake and autoconf etc.
I use this in configure.in
dnl Process this file with autoconf to produce a configure script.
AC_INIT(cogarithmetic.cc)
AM_INIT_AUTOMAKE(cog-training, 1.0.3)
AM_CONFIG_HEADER(config.h)
ALL_LINGUAS="de"
AM_GNU_GETTEXT([no-libtool], [need-ngettext])
AM_PROG_LIBTOOL
AM_MAINTAINER_MODE
[...]
AC_OUTPUT([Makefile po/Makefile.in doc/Makefile m4/Makefile intl/Makefile])
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
when I run ./configure I see this:
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
[...]
checking whether NLS is requested... yes
checking whether included gettext is requested... no
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
/usr/local/lib/libintl.so contains ngettext:
$ nm /usr/local/lib/libintl.so | grep ngettext
00001bd0 T dcngettext
00004c90 T dcngettext__
00001ba0 T dngettext
00004cd0 T dngettext__
00001b70 T ngettext
00004d10 T ngettext__
the whole tarball is here:
http://home.t-online.de/~fam.natter/cog-training.tar.gz
thanks,
--
Felix Natter
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- undefined reference to ngettext,
Felix Natter <=