[GRASS-dev] vask and undefined symbol: stdscr - was Re: [Gdal-dev] Error accessing Pgeo through ODBC

Glynn Clements glynn at gclements.plus.com
Sat Dec 2 04:41:00 EST 2006


Brad Douglas wrote:

> The files could probably use some #ifdef HAVE_CURSES_H macros...

In most cases, there isn't much point conditionalising inside source
files. Most of the code which uses curses absolutely requires it, and
can't do anything without it.

If anything, vask, and everything which requires it, should be
conditionalised in the Makefiles. If you don't have curses, vask
doesn't get built, and modules which require it don't get built.

The main complication is the imagery library. Parts of it require
vask; they would need to be conditionalised individually rather than
omitting the entire library if curses isn't available.

That could by done either by listing the individual object files in
lib/imagery/Makefile, with the vask-dependent ones conditionalised, or
by bracketing the bodies of the source files with "#ifdef HAVE_CURSES_H".

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list