Mail Archives: cygwin/2001/05/02/21:52:47
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 -