[GRASS-dev] undefined reference to G_alloc_matrix()
Glynn Clements
glynn at gclements.plus.com
Sat Aug 2 09:36:00 EDT 2008
Yann Chemin wrote:
> I am trying to keep temporary files in DCELL **G_alloc_matrix(nrows,ncols)
>
> on compilation I get an undefined reference to that function...
>
> Checked in gis.h it is referring to gisdefs.h which has the definition.
> I just svn up on trunk with full distclean and full recompile, still same.
Contrary to what you would naturally assume from the headers,
G_alloc_matrix() is actually in the gmath library, so you need to add
$(GMATHLIB) to LIBES.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list