[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++ and "undefined reference to `libintl_gettext'"
From: |
Bruno Haible |
Subject: |
Re: g++ and "undefined reference to `libintl_gettext'" |
Date: |
Thu, 20 Feb 2003 14:22:41 +0100 (CET) |
Reimann, Peter writes:
> I use cygwin (cygwin1.dll -> 1.3.20) with win2000professionell, gettext and
> libintl2 0.11.5-1, g++ (GCC) 3.2 20020927 (prerelease).
> If I try to compile a little program that use localizations I get errors for
> all dgettext, bindtextdomain an so on.
>
> $ g++ -static -mno-cygwin -o docucalc.exe DCMessage.o DCMessageItemList.o
> DCInputMessage.o DCOutputMessage.o DCModel.o DCCalculator.o
> DCParameterRules.o docucalc.o DCError.o DCErrorMessage.o DCCLIInterface.o
> DCModelTool.o DCCPModel.o DCExternArticleList.o
>
> DCError.o(.text+0x25d8):DCError.cc: undefined reference to `libintl_gettext'
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