Guest
#2791889
Hi, I'm programming a Lpc1343.
I have to create a list of elements,
struct lista {
uint16_t inf;
struct lista *pun;
};
struct lista *punt;
punt = (struct lista *)malloc(sizeof(struct lista));
but when i call the malloc, the compiler returns me the following error:
home/francesco/Programs/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/.
./../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-sbrkr.o): In function
`_sbrk_r':
sbrkr.c:(.text+0x12): undefined reference to `_sbrk'