delorie.com/archives/browse.cgi | search |
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: | <3BA657D0.8010809@ece.gatech.edu> |
Date: | Mon, 17 Sep 2001 16:06:40 -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: | Didier Juges <JugesD AT keltec DOT sigtech DOT com> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: problem with linking with NCurses library |
References: | <280ACD22066CBF44A2607ACD0921567D04FB77 AT stck2 DOT keltec DOT sigtech DOT com> |
Please keep discussion on the list. > I tried: > > gcc -lncurses <DEFANGED_object files> -o project > > and: > > gcc -lcurses <DEFANGED_object files> -o project > > because this is what I had in the makefile under Linux. You need to have -lncurses FOLLOW the object files, not PRECEDE them. > > It does not matter to me at this point whether the library is linked > staticaly or dynamicaly, the cygwin install I have includes the following > libraries: > > libcurses.a > libcurses.dll.a > libncurses++.a > libncurses++.dll.a > > I suppose the dll libraries are for dynamic linking as in Win32. > > How should I tell the linker to use the dynamic libraries? It uses them by default. You only have trouble when you try to link staticly. (I'm not giving more detail here, because anything I say about static/dynamic will be obsolete in about a week -- changes are a'comin'.) --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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |