Charles Wilson wrote: > Dave Korn wrote: >> Charles Wilson wrote: >>> Alexey Lyubimov wrote: > >>>> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses >>>> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main': >>>> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to >>>> `_stdscr' >>>> collect2: ld returned 1 exit status > >> My guess is that Alexey didn't notice a dll-in-use-must-reboot warning on >> cygncurses-8.dll when running setup.exe, and a reboot might have fixed it. > > Nah. That scenario might cause a run-time failure, but not a link-time > failure like the one Alexey described.
He'd end up with the old DLL but the /new/ import library, wouldn't he? So adding -ltinfo might fix the link, but then it would fail to find the right imports if he had tried running it? cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/