Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <013d01c2d76b$eb213610$e5ea86d9@webdev>
Reply-To: "Elfyn McBratney" <cygwin@cygwin.com>
From: "Elfyn McBratney" <elfyn-cygwin@exposure.org.uk>
To: "cygwin" <cygwin@cygwin.com>,
   "Reimann, Peter" <Peter.Reimann@deu.xerox.com>
References: <31C3BDC47886D511916D00508B2C391FDF7B1B@deuhbsms02.hbs.deu.xerox.com>
Subject: Re: g++ and "undefined reference to `libintl_gettext'" 
Date: Tue, 18 Feb 2003 16:36:30 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> 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 (below class DCError is a part of it)
> that use localizations I get errors for all dgettext, bindtextdomain an so
> on.
>
> DCError.o(.text+0x25d8):DCError.cc: undefined reference to
> `libintl_dgettext'

What link/compile command are you using (eg. g++ ...)?

> I tried several options like
> --disable-nls
> --with-included-gettext

These are configure commands/args. Are you trying to configure an
application or compile/build it by hand?

> -static
> -mno-cygwin

These are compiler commands/args. Again same question as above, only
reversed.

> but always it is the same error. What is my fault? The same code works
fine
> on solaris!
>
> Thanks for your help.
>
> Peter

Take a look at <http://cygwin.com/bugs.html> for some guidelines on posting,
this will help you rpovide the information needed to find the problem.


Regards,

Elfyn McBratney
elfyn@exposure.org.uk
www.exposure.org.uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

