--- In l..., "zarko.nikolic" wrote:
>
> I am trying to use an FFT library in my Crossworks project.
> The FFT library uses malloc.h and memory.h but they do not exist in
> Crossworks.
>
> Is there a way to use to use this FFT library since malloc.h and
> memory.h don't exist?
>
?? Quick cut & paste from my own, working, Crossworks app:
*******************************************************************
handle OScreateThread(void *startAddr, int stackSize, unsigned char
priority,
void *parameter){
OSthreadHandle *thisThreadHandle;
thisThreadHandle=(OSthreadHandle*)malloc(sizeof(OSthreadHandle));
thisThreadHandle->stackPtr=(void*)malloc(stackSize<<2);
ctl_task_run(&thisThreadHandle->threadControlStruc,priority,startAddr,parameter,"",
stackSize, thisThreadHandle->stackPtr,CALLSTACKSIZE);
return (void*)thisThreadHandle;
};
*******************************************************************
So, malloc() must be declared in one of the headers, somewhere. Try
stdlib.h
Rgds,
Martin