This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: problem with linking with NCurses library
- To: Didier Juges <JugesD at keltec dot sigtech dot com>
- Subject: Re: problem with linking with NCurses library
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- Date: Mon, 17 Sep 2001 16:06:40 -0400
- CC: cygwin at cygwin dot com
- References: <280ACD22066CBF44A2607ACD0921567D04FB77@stck2.keltec.sigtech.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/