"Nils �gren" wrote:
> 
> Hello everyone,
> 
> I'm trying to use malloc() in a Palm project running CW form Palm R5. I've
> included stdlib.h in my source file and the ANSI libs. But when I make the
> project I get a link error whining about:
> 
> pool_alloc.mac.c: 'GETPTRSIZE' referenced from '__sys_free' is undefined.
> 
> It ain't my code, that's for sure.
> 
> Any ideas on how to solve this?
> 
> TIA,
> 
> Nils �gren


You should not be using malloc() or any standard C function.  You need
to stick with the Palm provided APIs.  Take a look at MemHandleNew() or
MemPtrNew(), depending on your needs.  The APIs should be able to
provide you with most of the calls that you should need.

-- 
Brian Mathis
Direct Edge
http://www.directedge.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to