pea
developer
Hey all,
For some reason I am having a compile problem trying to add some custom code to Mr.Mirko SDK (actually upgrading from an older version of the SDK, and adding my custom functions back in - so they worked previously).
The problem I am having is that the functions malloc, free, memcpy etc don't seem to be defined or something:
I have succesfully compiled other custom parts of the SDK that contain references to these functions with no problems. The only #include in any of these units is <gp32.h> and the makefiles seem to be identical as far as I can tell.
Any ideas?
For some reason I am having a compile problem trying to add some custom code to Mr.Mirko SDK (actually upgrading from an older version of the SDK, and adding my custom functions back in - so they worked previously).
The problem I am having is that the functions malloc, free, memcpy etc don't seem to be defined or something:
Code:
arm-elf-gcc -I../../include -O2 -s -Wall -mtune=arm9tdmi -c -o gp_input.o gp_input.c
gp_input.c: In function `_gp_inputKeyCreate':
gp_input.c:29: warning: implicit declaration of function `malloc'
gp_input.c: In function `gp_inputCreate':
gp_input.c:121: warning: implicit declaration of function `memset'
gp_input.c: In function `gp_inputFree':
gp_input.c:135: warning: implicit declaration of function `free'
gp_input.c: In function `gp_inputGetChatBuffer':
gp_input.c:178: warning: implicit declaration of function `memcpy'
arm-elf-ar rcs gp_input.a gp_input.o
cp gp_input.a ../../lib/
rm *.o *.a
I have succesfully compiled other custom parts of the SDK that contain references to these functions with no problems. The only #include in any of these units is <gp32.h> and the makefiles seem to be identical as far as I can tell.
Any ideas?