View Single Post
Old April 7, 2015, 16:50   #12
debo
Veteran
 
debo's Avatar
 
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,352
debo is on a distinguished road
Have you tried building on anything except windows? I tried building GCU-only with makefile.org using clang (OS X) and I'm getting curses crankiness in main-gcu.c.

I can figure this out on my own, but if you've done this already once and just haven't migrated the changes to main-gcu.c or something, I'd rather not reinvent this wheel

Specifically, the error is this:

Code:
gcc -Wall -O1 -pipe -g -D"USE_GCU"   -c -o main-gcu.o main-gcu.c
main-gcu.c:443:15: error: incomplete definition of type 'struct _win_st'
                mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
                      ~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/curses.h:322:16: note: forward declaration of
      'struct _win_st'
typedef struct _win_st WINDOW;
               ^
main-gcu.c:514:14: error: incomplete definition of type 'struct _win_st'
        mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
              ~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/curses.h:322:16: note: forward declaration of
      'struct _win_st'
typedef struct _win_st WINDOW;
               ^
2 errors generated.
I know I've worked around this in other ancient variants before, I just didn't have a chance to dig too much yet. (I tried building against both curses and ncurses, with USE_NCURSES set as required.)

I'm hoping to get something up and running so we can run it for a comp. I can always try WINEing if I run out of patience here.
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'
debo is offline   Reply With Quote