Category : devkitpro

I’m working on a project using a very large header file, so I’ve set up a precompiled header, however I’m having some trouble working this into my Makefile given the complexity of it. I’m not very knowledgeable about Makefiles and this one’s a doozy, it’s for Devkitpro and contains a lot! https://github.com/switchbrew/switch-examples/blob/master/graphics/sdl2/sdl2-demo/Makefile Given that my ..

Read more

I’m trying to include devkitpro’s <stdlib.h> in a GBA project. With this source #include "global.h" #include "ecs.h" #include <stdlib.h> int TestFunc(char *a) { return atoi(a); } I get the following error: /opt/devkitpro/devkitARM/arm-none-eabi/include/stdlib.h:70:4: error: expected identifier or ‘(‘ before ‘int’ 70 | int abs (int); | ^~~ In file included from src/ecs.c:4: /opt/devkitpro/devkitARM/arm-none-eabi/include/stdlib.h:70:5: error: expected ” ..

Read more