[GRASS-dev] Improving the G_calloc: unable to allocate xx bytes of memory message?
Radim Blazek
radim.blazek at gmail.com
Wed Nov 5 11:11:18 PST 2014
On Sat, Oct 25, 2014 at 12:13 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> +++ include/Make/Compile.make (working copy)
> +ALL_CFLAGS = $(LFS_CFLAGS) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC) -DRELDIR=\"$(RELDIR)\"
> +#define G_malloc(n) G__malloc(RELDIR "/" __FILE__, __LINE__, (n))
> +#define G_calloc(m, n) G__calloc(RELDIR "/" __FILE__, __LINE__, (m), (n))
> +#define G_realloc(p, n) G__realloc(RELDIR "/" __FILE__, __LINE__, (p), (n))
With RELDIR defined in Grass.make it is impossible to compile anything
with GRASS libs without GRASS build system. Could you please add the
RELDIR definition to some header file?
Thanks
Radim
More information about the grass-dev
mailing list