delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/17/14:43:50

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: <280ACD22066CBF44A2607ACD0921567D04FB76@stck2.keltec.sigtech.com>
From: Didier Juges <JugesD AT keltec DOT sigtech DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: problem with linking with NCurses library
Date: Mon, 17 Sep 2001 13:42:13 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

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.

Didier


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