https://gbadev.net/tonc/setup.html#sec-build-steps
cd libtonc-examples/basic/first/source
# Compile first.c to first.o
arm-none-eabi-gcc -mthumb -c first.c
# Link first.o (and standard libs) to first.elf
arm-none-eabi-gcc -specs=gba.specs -mthumb first.o -o first.elf
# Strip to binary-only
arm-none-eabi-objcopy -O binary first.elf first.gba
# Fix header
gbafix first.gba
Despite having armdevkit installed and libtonc installed, this code is not working right out of the box.
First required to set the PATH to find arm-none-eabi-gcc.exe
Secondly gba.specs can't be found by the compiler, even after adding that PATH as well.
I'm confused as to why this is not working because there's no notes about it?