delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/29/10:01:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3EAE8599.1030600@telia.com>
Date: Tue, 29 Apr 2003 16:00:57 +0200
From: Roger Nilsson <jrln AT telia DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: g++ and "undefined reference to `libintl_gettext'"

>Your linker can't find the symbols in gettext's library - make sure you're 
>linking to it with the proper -l options. Read the info pages for info :)
>
>$ info gettext
>
>$ gcc -o main main.c -lintl
>                     ^^^^^^

This solution actually works fine in Linux (if you have installed gettext of course). Just change to the binutils 
directory and change the Makefile row "INTLLIBS =" to "INTLLIBS = -lintl".

/Roger

>rlc
>
>NB: make sure gettext is installed: if you get linker errors, try 
>installing it with Setup.exe
>
>On Tue, 18 Feb 2003, Reimann, Peter wrote:
>
>> Hallo,
>> 
>> 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'
>> 
>> I tried several options like  
>> --disable-nls 
>> --with-included-gettext 
>> -static 
>> -mno-cygwin
>> 
>> but always it is the same error. What is my fault? The same code works fine
>> on solaris!
>> 
>> Thanks for your help.
>> 
>> Peter
>> 
>> 
>> 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.
>> 
>> 
>> --
>> 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/
>> 
>
>
>--
>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/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019