This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app
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?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html