[GRASS-dev] lots of link errors in trunk (OSX)

Glynn Clements glynn at gclements.plus.com
Sat Aug 29 12:41:59 EDT 2009

Glynn Clements wrote:

> > Errors continue in windows, starting with lib/raster.
> Can you provide the actual errors, please?

The issues with libintl_sprintf etc should be fixed by r38915.

libintl.h defines printf() etc as macros which expand to the
corresponding libintl_printf() etc functions. This is done so that you
can use positional specifiers (e.g. "%2$s"), which aren't supported by
MSVCRT's *printf functions.

This feature is useful in localised messages, as the argument order is
fixed in the code, but the order in which the arguments appear in the
message may need to vary according to language.

However, it means that anything including <libintl.h> (typically via
<grass/glocale.h>) acquires a direct dependency upon libintl.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list