
On Fri, 26 Dec 2003, MenTaLguY wrote:
On Fri, 2003-12-26 at 17:05, bulia byak wrote:
nr-pixblock.cpp:45: error: `rpl_malloc' undeclared (first use this function) nr-pixblock.cpp:45: error: (Each undeclared identifier is reported only once for each function it appears in.)
Line 45 uses nr_new() which is defined in nr-macros.h:
#define nr_new(t,n) ((t *) malloc ((n) * sizeof (t)))
Now, apparently AC_FUNC_MALLOC will redefine malloc to rpl_malloc if it determines malloc isn't "GNU compatible" ... which is probably a good reason not to use AC_FUNC_MALLOC. I'm not sure how that could possibly count as a feature.
Hmm, though isn't this what Autoconf is supposed to do? E.g., presumably there are non-GNU compilers that lack a proper malloc function so use this replacement.
Bryce