babbleberry / rpi4-osdev

Tutorial: Writing a "bare metal" operating system for Raspberry Pi 4
https://www.rpi4os.com
Creative Commons Zero v1.0 Universal
3.43k stars 255 forks source link

fatal error becuase I apparantely didn't include my header files #47

Closed EinSatzMitX closed 8 months ago

EinSatzMitX commented 8 months ago

Hey!

It's me again, but this time I have a really strange issue. whenever try to compile my code, I get something similiar to this:

einsatzmitx@DESKTOP-K54UIMD:/mnt/c/Users/Peter/Downloads/Additum2024-main/Additum2024-main/Rpi4OS$ make
mkdir -p build
aarch64-linux-gnu-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -MMD -c src/fb.c -o build/fb_c.o
src/fb.c:1:10: fatal error: io.h: No such file or directory
    1 | #include "io.h"
      |          ^~~~~~
compilation terminated.
make: *** [Makefile:18: build/fb_c.o] Error 1

I'm very interested to hear your opinion because I've never seen something like this before

PS: I tried to simply copy your code but I got a different error, I might talk about in another issue .-.