delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/02/21:52:47

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: <3AF04EE0.1970FC9C@ece.gatech.edu>
Date: Wed, 02 May 2001 14:16:00 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Felix Natter <f DOT natter AT ndh DOT net>
CC: cygwin AT cygwin DOT com
Subject: Re: broken ncurses-installation
References: <87g0epjj8f DOT fsf AT mybaby DOT home DOT felix>
<687389018 DOT 20010501174234 AT logos-m DOT ru> <8766fjpydh DOT fsf AT mybaby DOT home DOT felix>

Felix, this is the second time you have explicitly listed your "command
line" -- but that "command line" did not have the required '-lcurses'
argument.  This is also the second time you have claimed, "oh yeah, I
"of course" had that option" after somebody pointed out that it was
missig.  Are you SURE you had the -lcurses?  (Or did you forget to type
the MOST IMPORTANT fraggin' part of the command in TWO separate email
messages, but "of course" NOT forget when typing it in their shell?  --
cut-n-paste from the command window is your friend...)

Also, the fact that '-lcurses' was not included in your email messages
means that we don't know *where* in your command line the 'lcurses'
argument appeared (you know it has to come *after* the object files that
require it, right?)

Finally, you *MAY* be running in to some hitherto unknown symlink
problem.  /usr/lib/libcurses.a/libcurses.dll.a are symlinks to
/usr/lib/libncurses.a/libncurses.dll.a.  Try using '-lncurses' instead
of '-lcurses'.

I'm sorry, but I can't reproduce your problem.  However, I don't think
there's anything wrong with your installation method; you are missing a
few packages but those absenses should not affect your test program's
build. 

Having a space in your homedir name is probably not a good idea.
Having a space in your login name is probably not a good idea.
Having TEMP=something with /cygdrive/ in it is not good.

> gcc -static -DNCURSES_STATIC -o test_curses.exe test_curses
> => undefined reference to endwin ...
> gcc -o test_curses.exe test_curses.c
> => undefined reference to _imp__endwin ...

The results of these two commands indicate that you DO have
/usr/include/curses.h.  However, let's check the basics: do the files
/usr/lib/libncurses.a and/or /usr/lib/libncurses.dll.a exist?  Do the
symlinks /usr/lib/libcurses.a and/or /usr/lib/libcurses.dll.a exist?

--Chuck


Felix Natter wrote:
> 
> egor duda <deo AT logos-m DOT ru> writes:
> 
> > Hi!
> >
> > Tuesday, 01 May, 2001 Felix Natter f DOT natter AT ndh DOT net wrote:
> >
> > FN> hi,
> >
> > FN> gcc -static -DNCURSES_STATIC -o test_curses.exe test_curses
> > =>> undefined reference to endwin ...
> this should be:
>         gcc -lcurses -static -DNCURSES_STATIC -o test_curses.exe test_curses
> > you want to add '-lcurses' to the command line, just like it's being
> > done on Linux.
> 
> Sorry, once again I forgot to mention this. Of course I added -lcurses to
> the line (I also tried to list the static library with the full path).
> 
> --
> Felix Natter
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019