Hi Alan,
good idea to include the library. On Mac OS X (but only later
versions, 10.4 upwards or so) malloc.h must be included with
#include malloc/malloc.h
and not with
#include malloc.h
I took the easy route and defined for Mac OS X NOMALLOCH in the
corresponding CMakeLists.txt
From Linux man page
MALLOC(3) Linux Programmer's Manual MALLOC(3)
NAME
calloc, malloc, free, realloc - Allocate and free dynamic memory
SYNOPSIS
#include stdlib.h
void *calloc(size_t nmemb, size_t size);
void *malloc(size_t size);
Date: Fri, 6 Mar 2009 12:33:54 -0800 (PST)
From: Alan W. Irwin ir...@beluga.phys.uvic.ca
Subject: Re: [Plplot-devel] A Qt4-based device driver has just been
donated to PLplot
To: Andrew Ross andrewr...@users.sourceforge.net
Cc: plplot-devel@lists.sourceforge.net
Message-ID:
On 2009-03-09 16:19+0100 Werner Smekal wrote:
Hi Alan,
good idea to include the library. On Mac OS X (but only later versions, 10.4
upwards or so) malloc.h must be included with
#include malloc/malloc.h
and not with
#include malloc.h
I took the easy route and defined for Mac OS X