Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3B8A8666.8000604@ece.gatech.edu>
Date: Mon, 27 Aug 2001 13:41:58 -0400
From: Charles Wilson <cwilson@ece.gatech.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@yahoo.com>
CC: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: problem building program:  undef ref _imp__gettext
References: <200108271722.f7RHMiN20824@mail.ee.gatech.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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/

