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

2008-07-24 Thread Moritz Lennert
Hello, I'm having a problem with the d.thematic.area module I just committed in a modified version. When I use the discontinuities algorithm for calculating the class breaks, I get segmentation faults, depending on the number of classes I ask for and on the variable I try to class. For exa

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

2008-07-24 Thread Glynn Clements
Moritz Lennert wrote: > I'm having a problem with the d.thematic.area module I just committed in > a modified version. > It seems to be linked to the class_discont function in > lib/arraystats/class.c, as this only happens with this algorithm. > However, when I do the same test with d.themat

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

2008-07-24 Thread Michael Barton
On Jul 24, 2008, at 12:25 PM, <[EMAIL PROTECTED]> wrote: Date: Thu, 24 Jul 2008 18:46:31 +0200 From: Moritz Lennert <[EMAIL PROTECTED]> Subject: [GRASS-dev] d.thematic.area: need for a bit of help in C-programming/debugging To: grass-dev Message-ID: <[EMAIL PROTECTED

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

2008-07-24 Thread Moritz Lennert
On 24/07/08 21:55, Michael Barton wrote: On Jul 24, 2008, at 12:25 PM, <[EMAIL PROTECTED]> wrote: Date: Thu, 24 Jul 2008 18:46:31 +0200 From: Moritz Lennert <[EMAIL PROTECTED]> Subject: [GRASS-dev] d.thematic.area: need for a bit of help in C-programming/debugging To: grass-

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

2008-07-29 Thread Moritz Lennert
On 24/07/08 21:39, Glynn Clements 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 co

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

2008-07-29 Thread Moritz Lennert
On 29/07/08 10:01, Moritz Lennert wrote: On 24/07/08 21:39, Glynn Clements 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/Plat

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

2008-07-29 Thread Glynn Clements
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

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

2008-07-29 Thread Moritz Lennert
On 29/07/08 15:40, Glynn Clements wrote: 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