delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/27/13:52:20

Message-Id: <200108271752.NAA24144@delorie.com>
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Mark Paulus" <commpg AT yahoo DOT com>
To: "Charles Wilson" <cwilson AT ece DOT gatech DOT edu>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Mon, 27 Aug 2001 11:49:57 -0600
Reply-To: "Mark Paulus" <commpg AT yahoo DOT com>
X-Mailer: PMMail 2000 Professional (2.20.2350) For Windows 2000 (5.0.2195;2)
In-Reply-To: <3B8A8666.8000604@ece.gatech.edu>
MIME-Version: 1.0
Subject: Re: problem building program: undef ref _imp__gettext

Thanks, that worked.  But, it makes me confused.
When I build this particular app under linux/debian,
it does NOT have the -lintl linker flag.  And when I add
it, the link fails.  But under cygwin, I need it.  

Can anyone out there help me reconcile the issues here.
(So I can go back to the source and either provide a patch,
or do whatever to get it to work in both environs).

Thanks.


On Mon, 27 Aug 2001 13:41:58 -0400, Charles Wilson wrote:

>Mark Paulus wrote:
>
>> Hi,
>> 
>> I'm trying to compile/link a program, and I'm getting the following 
>> undefined reference:  _imp__gettext.
>> 
>> Is there some Environment variable, or something special I need to
>> do to enable gettext??  
>
>
>add -lintl to your link command.
>
>>(BTW, where is the '_imp_' getting 
>> pre-pended to the name anyway??)
>
>
>That's the way shared libraries on windows (DLLs) work.
>
>
>--Chuck
>
>
>
>--
>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/

- Raw text -


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