Post by Brad EvermanHaving an issue compiling Angband 3.0.3 and 3.0.4 on a NetBSD 1.6.1
system. Get the following message regardless of what configure options I
/angband-3.0.4-beta1/src/main-gcu.c:1030: undefined reference to
`can_change_color'
Hmm, Not sure if this is useful but it's certainly defined by ncurses:
color(3NCURSES) color(3NCURSES)
NAME
start_color, init_pair, init_color, has_colors, can_change_color,
color_content, pair_content,
COLOR_PAIR - curses color manipulation routines
SYNOPSIS
# include <curses.h>
int start_color(void);
[...]
bool can_change_color(void);
[...]
The routines has_colors and can_change_color return TRUE or FALSE,
depending on whether the terminal has color capabilities and whether the
programmer can change the colors.
[...]
The has_colors routine requires no arguments. It returns TRUE if the
terminal can manipulate colors; otherwise, it returns FALSE. This
routine facilitates writing terminal-independent pro- grams. For example, a
programmer can use it to decide whether to use color or some other video
attribute.
The can_change_color routine requires no arguments. It returns TRUE if the
terminal supports col- ors and can change their definitions; other, it
returns FALSE. This routine facilitates writing terminal-independent
programs.
Sadly, I don't know enough ncurses to know if these are totally
equivalent and if you can check for the other. Finding historical docs
unlikely to be tainted by any influence from my environment (Debian
Linux) are hard to find, especially with curses/ncurses devleopment
being so twisty.
If I assume the manpage to be vanilly, it seems like you don't have a
current generic dickey ncurses curses.h.
-josh