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

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
Message-ID: <3B8A8666.8000604@ece.gatech.edu>
Date: Mon, 27 Aug 2001 13:41:58 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010713
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Paulus <commpg AT yahoo DOT com>
CC: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: problem building program: undef ref _imp__gettext
References: <200108271722 DOT f7RHMiN20824 AT mail DOT ee DOT gatech DOT edu>

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/

- Raw text -


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