can anyone help me solve this? It's just when I'm writing kernel code for my OS. When I'm writing stack for my kernel, here is the code: kernel.c
When I compiling it use this command:
gcc -m32 -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
It gives me this error:
ld: /home/lexuanloc/AmoreOS/cache/kernel.o: in function `MakeNode':
kernel.c:(.text+0xf2): undefined reference to `malloc'
ld: /home/lexuanloc/AmoreOS/cache/kernel.o: in function `screen_scrolling_up':
kernel.c:(.text+0x325): undefined reference to `Push'
ld: /home/lexuanloc/AmoreOS/cache/kernel.o: in function `screen_scrolling_up_when_press':
kernel.c:(.text+0x5d5): undefined reference to `Push'
ld: /home/lexuanloc/AmoreOS/cache/kernel.o: in function `screen_scrolling_down':
kernel.c:(.text+0x6d5): undefined reference to `Push'
ld: kernel.c:(.text+0x749): undefined reference to `load_fisrt_line'
Can anyone help me solve this?