bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: g++ and "undefined reference to `libintl_gettext'"


From: Reimann, Peter
Subject: AW: g++ and "undefined reference to `libintl_gettext'"
Date: Fri, 21 Feb 2003 11:14:21 +0100

Hallo,

Additional specify linking of libraries if I specify -static? Anyway I
dont't understand much of that but if I add -lintl more errors occures:

/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x24b): In function `libintl_dcigettext':
/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:482: undefined reference
to `__errno'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x25e):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:485: undefined
reference to `getuid'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x265):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:485: undefined
reference to `geteuid'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x26f):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:485: undefined
reference to `getgid'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x276):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:485: undefined
reference to `getegid'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x35b):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:521: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x37a):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:523: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x384):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:536: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x5b8):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:601: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0x660):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:639: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0xa9d):/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:914: more undefined
references to `__errno' follow
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(dcigettext.o)(.text+
0xb3a): In function `nl_find_msg':
/usr/src/gettext/gettext-0.11.5/intl/dcigettext.c:906: undefined reference
to `libiconv'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(loadmsgcat.o)(.text+
0x6b5): In function `nl_init_domain_conv':
/usr/src/gettext/gettext-0.11.5/intl/loadmsgcat.c:863: undefined reference
to `libiconv_open'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(loadmsgcat.o)(.text+
0x6fb): In function `nl_free_domain_conv':
/usr/src/gettext/gettext-0.11.5/intl/loadmsgcat.c:890: undefined reference
to `libiconv_close'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(loadmsgcat.o)(.text+
0x7a4): In function `nl_load_domain':
/usr/src/gettext/gettext-0.11.5/intl/loadmsgcat.c:983: undefined reference
to `__errno'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(plural-exp.o)(.text+
0x8b): In function `libintl_gettext_extract_plural':
/usr/src/gettext/gettext-0.11.5/intl/plural-exp.c:121: undefined reference
to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(localealias.o)(.text
+0x204): In function `read_alias_file':
/usr/src/gettext/gettext-0.11.5/intl/localealias.c:262: undefined reference
to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(localealias.o)(.text
+0x273):/usr/src/gettext/gettext-0.11.5/intl/localealias.c:276:
undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(l10nflist.o)(.text+0
x82d): In function `nl_normalize_codeset':
/usr/src/gettext/gettext-0.11.5/intl/l10nflist.c:406: undefined reference to
`_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libintl.a(l10nflist.o)(.text+0
x898):/usr/src/gettext/gettext-0.11.5/intl/l10nflist.c:425: undefined
reference to `_imp___ctype_'

If I not use -static no errors occures but the resulted programm crashes
with c0000005 (access violation). It was ok if I comment out
bindtextdomain(), the only one I use localization calls for testing it. So I
think I must link all libraries libintl is used? Or are there some g++
options for it?

Peter

> libintl_gettext is supposed to be defined in the libintl library.
> Version 0.11.5 should be ok.  But you certainly need to pass the
> option -lintl at the end of the "g++ ... " command line.

> Bruno


This e-mail and any attachments is confidential and privileged. The information 
is intended to be for the use of the individual(s) or relevant Xerox entity 
named above.  If you are not the named or intended recipient, please notify the 
sender immediately and do not disclose the contents to another person, use it 
for any purpose, or store or copy the information in any medium.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]