This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

undefined reference to `init_mempool

i am using Keil uVision3 + ADUC7026, i am trying to allocate

#include <ADuC7026.h>
#include "stdio.h"
#include "stdlib.h"

unsigned char memory_pool[0x400];
int main (void) {
int *i;
init_mempool (memory_pool, sizeof(memory_pool));
i = malloc(sizeof(int));
}

warning: implicit declaration of function 'init_mempool'
..........
error: undefined reference to 'init_mempool'

can someone help me ,why can't find init_mempool? "Do not use Standart Libriries" is uncheckt. and the system can find malloc.

thanks