ncurses problem with mvcur function
I have a very old game that uses ncurses. I read the file /usr/share/doc/Cygwin/ncurses.README and added -I /usr/include/ncurses to the compile commands I am using 5.7-18 of ncurses I added every package with ncurses in the package name in the Devel, Libs, and Utils Categories The error is: gcc -std=c99 -Wall -Wextra -pedantic -O3 -pipe -D"USE_X11" -D"USE_GCU" -I/usr/X11R6/include -I/usr/include/ncurses -c -o main-gcu.o main-gcu.c main-gcu.c: In function `Term_xtra_gcu_alive': main-gcu.c:603: error: dereferencing pointer to incomplete type main-gcu.c:603: error: dereferencing pointer to incomplete type main-gcu.c: In function `Term_nuke_gcu': main-gcu.c:739: error: dereferencing pointer to incomplete type main-gcu.c:739: error: dereferencing pointer to incomplete type make: *** [main-gcu.o] Error 1 lines 602-603 are /* this moves curses to bottom right corner */ mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0); lines 738-739 are the same as above. This program use to compile with Cygwin 1.5 I would like top compile this old game, any hints on how? Joe -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: ncurses problem with mvcur function
Hello Charles Thank you, the old game now compiles OK. Joe --- On Wed, 5/19/10, Charles Wilson wrote: From: Charles Wilson Subject: Re: ncurses problem with mvcur function To: "Cygwin Mailing List" Date: Wednesday, May 19, 2010, 11:28 PM On 5/19/2010 9:09 PM, Joe Java wrote: > I have a very old game that uses ncurses. > > lines 602-603 are > /* this moves curses to bottom right corner */ > mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0); > > lines 738-739 are the same as above. ncurses is now compiled with reentrant support, which had the unfortunate effect of changing the API slightly, by making the WINDOW object an opaque pointer. Instead of accessing the members of curscr directly, you use accessor functions: curscr->_cury ---> getcury(curscr) curscr->_curx ---> getcurx(cursrc) -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple