![]() |
#1 |
Rookie
Join Date: Nov 2007
Posts: 5
![]() |
![]()
I get this when compiling vanila 3.0.9 on OS X 10.4.10 (Intel and PPC):
CC main-gcu.c In file included from main-gcu.c:63: /usr/include/ncurses.h:335: error: parse error before 'bool' /usr/include/ncurses.h:337: error: parse error before '_leaveok' /usr/include/ncurses.h:338: error: parse error before '_scroll' Looks like it's something to do with stdbool, configure seemed to think it was okay: checking for dirent.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes Any ideas what to do to fix it? |
![]() |
![]() |
![]() |
#2 |
Rookie
Join Date: Nov 2007
Posts: 5
![]() |
|
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Nov 2007
Posts: 4
![]() |
I compiled an X11/curses version from the shell easily, and if you just want an OSX version to play, check rephial.org. There's a precompiled X version there.
|
![]() |
![]() |
![]() |
#4 | |
Rookie
Join Date: Nov 2007
Posts: 5
![]() |
Quote:
Compiling vanilla from source provides a working carbon version with graphics which was what I was after. |
|
![]() |
![]() |
![]() |
#5 | |
Knight
Join Date: Apr 2007
Posts: 590
![]() |
Quote:
I have similar problems with older versions of PDCurses (but not 3.3). My workaround was to adjust the curses headers to do things right, then rebuild curses before attempting to use it. Inspecting PDCurses 3.3...may want to fix my local copy up eventually, as a sufficiently competent C preprocessor in C++ mode should explicitly error when asked to #define a reserved word. [The spec says "undefined behavior" in this case for both C and C++, but bool is reserved only in C++.] |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[NPP] Compiling on Mac OS X | chem | Variants | 10 | January 6, 2009 22:40 |
Rod/wand/staff failure rates? | Geofferic | Vanilla | 2 | October 22, 2007 06:38 |
Sangband and Oangband for Mac? | Corydon | Variants | 3 | July 27, 2007 22:27 |