Re: Newbie link problem: Error 1
Thomas Dickey <[email protected]>
| Newsgroups | gmane.network.tin.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 22 Nov 2003 [email protected] wrote: > Thomas Dickey <[email protected]> wrote: > > > > Is there a *simple* way to test whether ncurses is installed and > > > working *correctly*? > > > > perhaps you have only the runtime (dll's) installed, and not > > libncurses-devel (which would have the import-libraries and header > > files). > > > > The latter has for instance /usr/include/ncurses/curses.h, and > > /usr/lib/libncurses.a > > I take it that the runtime libraries are not sufficient, that the > sources must be linked directly during make? Or should it be able to > use the runtime library somehow? You need the header files in any case (to compile). For the libraries - there are (now that I'm reminded to look closely) three types of files: /bin/cygncurses7.dll /lib/libncurses.dll.a /lib/libncurses.a It is the second of these which acts as an import-file (used in linking) for the dll (normally this would be a ".lib" file, but cygwin is different). The last is supposed to be a static archive (but I recall reading the cygwin still implements it as a shared library). Both of the ".a" files are provided in the -devel package - so you need it to link an executable as well. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net