0 Members and 2 Guests are viewing this topic.
bullets.o: In function '_freeList': bullets.c:(.text+0x384): undefined reference to '_free' bullets.o: In function '_createNode': bullets.c:(.text+0x39c): undefined reference to '_malloc'
#include "stdlib.h"
How did you compiled your program? What's the gcc command line used to compile this?
> sh3eb-elf-gcc bullets.o posnmath.o starvak2.o xpo.o -mb -m4a-nofpu -mhitachi -nostdlib -TC:/Users/Kook/Desktop/TISTUFF/PrizmSDK-0.3/common/prizm.ld -Wl,-static -Wl,-gc-sections -LC:/Users/Kook/Desktop/TISTUFF/PrizmSDK-0.3/lib -lfxcg -lgcc -o C:/Users/Kook/Desktop/TISTUFF/PrizmSDK-0.3/projects/starvak2/starvak2.bin
Both malloc and free are implemented in <stdlib.h>, but try including the raw library in your build folder and using Code: [Select]#include "stdlib.h" to see if that fixes the problem. Otherwise, you're not calling the linker properly.
...: In function 'stack_k':(.text+0x50): undefined reference to '_stack'...