Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Message-ID: <3BA657D0.8010809@ece.gatech.edu> Date: Mon, 17 Sep 2001 16:06:40 -0400 From: Charles Wilson 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 CC: cygwin@cygwin.com Subject: Re: problem with linking with NCurses library References: <280ACD22066CBF44A2607ACD0921567D04FB77@stck2.keltec.sigtech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Please keep discussion on the list. > I tried: > > gcc -lncurses -o project > > and: > > gcc -lcurses -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/