Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Felix Natter 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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