[GRASS-dev] d.thematic.area: need for a bit of help in C-programming/debugging

Glynn Clements glynn at gclements.plus.com
Tue Jul 29 09:40:59 EDT 2008


Moritz Lennert wrote:

> >  > To use it, you need to link the program with -lmcheck (this ensures
> >> that mcheck() is called before the first malloc()), 
> > 
> > Sorry, need some help on this one. Tried adding -lmcheck to CFLAGS1 in 
> > include/Make/Platform.make, but get the following during compilation:
> > 
> > gcc: -lmcheck: linker input file unused because linking not done
> > 
> > How do I link ?
> 
> 
> Duh, obviously this message appears only each of the individual .c 
> files. Linking is done afterwards...
> 
> Sorry for the noise,

Actually, I should have said LINK_FLAGS rather than CFLAGS1.

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


More information about the grass-dev mailing list