[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined reference to `libintl_gettext'
From: |
Bruno Haible |
Subject: |
Re: undefined reference to `libintl_gettext' |
Date: |
Tue, 25 Feb 2003 15:14:30 +0100 (CET) |
Jeremy C. Reed wrote on 21 Feb 2003:
> size.o: In function `usage':
> size.o(.text+0x19): undefined reference to `libintl_gettext'
> size.o(.text+0x2e): undefined reference to `libintl_gettext'
> size.o(.text+0x43): undefined reference to `libintl_gettext'
> size.o(.text+0x5f): undefined reference to `libintl_gettext'
> size.o(.text+0x8e): undefined reference to `libintl_gettext'
> size.o: In function `main':
> size.o(.text+0xe0): undefined reference to `libintl_bindtextdomain'
> ...
> ../bfd/.libs/libbfd.a(archive.o): In function
> `_bfd_write_archive_contents':
> archive.o(.text+0x18a8): undefined reference to `libintl_dgettext'
> My system:
> ...
> libiconv-1.8
> glibc 2.2.5
Hi,
This link of linker error typically occurs when your -I and -L options
in CFLAGS and LDFLAGS (respectively) are inconsistent. In particular,
when -I points to the directory where you have libiconv's <iconv.h>
installed, and -L does _not_ point to the directory where you have
libiconv.so installed. (Look not only at explicit -I and -L options;
also the implicit ones by your GCC installation matter!)
The current gettext.m4 macros catch this situation, but alas, binutils
uses its own, patched, five year old gettext.m4.
Bruno