This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app


Charles Wilson wrote:
> Alexey Lyubimov wrote:
>> Unfortunately, things went worse :-(
>> After I've upgraded to GCC 3.4.4-999 and libncurses9-5.7-2 I get the following error instead of a ld's warning (see my first message in this thread for the reference):
>>
>> $ 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
> 
> The only way this could've happened is if you compiled tnc.c with the
> 5.5-3 headers (that is, the ones matching libncurses8) but tried to link
> against libncurses9 (e.g. 5.7-1, 5.7-2, or 5.7-3).  However, because the
> link libraries and header files are all distributed together in one
> package (libncurses-devel), AND because you compiled and linked all at
> once in the same command, I'm at a loss to explain what happened.

  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.

  Erk.  I wonder what happens if you update, it adds a file to the
rename-on-reboot list, then update again - this time without a shell (or
whatever) running so that it goes ahead and installs the even-newer version
successfully.  I suspect a reboot might bring auto-downgrade in its wake :-(
not good.

  Alexey, if this happens, you might need to reinstall libncurses.  If you
haven't rebooted yet, is there a file called "wininit.ini" in your \WINDOWS
folder?  Or any file matching "*.dll.new" in /bin?

    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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]