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: <3BA645C3.2060008@ece.gatech.edu>
Date: Mon, 17 Sep 2001 14:49:39 -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: Didier Juges <JugesD@keltec.sigtech.com>
CC: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Re: problem with linking with NCurses library
References: <280ACD22066CBF44A2607ACD0921567D04FB76@stck2.keltec.sigtech.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Didier Juges wrote:

> I am new to Cygwin and I am trying to convert a program originally written
> under Linux 2.0.36 with gcc 2.95 and linked with ncurses 4.2.
> 
> I just installed cygwin in my Win98 machine and tested it by compiling my
> favorite text editor: Joe's editor. That went well with no error after I
> changed the makefile to point to gcc instead of cc.
> 
> However, when I try to compile my software, the linker throws up on all the
> ncurses function calls (the compilation goes OK though).
> 
> An example of one of the many error messages is:
> 
> "undefined reference to _imp__wrefresh"
> 
> I noticed that there were curses libraries and ncurses libraries. I changed
> the linker directive from -lncurses to -lcurses with no effect (same
> errors).
> 
> The program is written in C, not C++.
> 
> Any suggestion would be appreciated.


What is your complete link command line?  Are you trying to link staticly?

--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/

