# Yagarto: Do not include the standard header files

I am using a recompiled version of the GCC toolchain for the ARM platform, called Yagarto. The compiler comes with a "standard library" called Newlib, and "standard headers", such as stdio.h.

For my project, the licencing of Newlib is not suitable, so I have used a printf function from somewhere else. The problem is that it seems the build-in header files are implicitly included in every .c file, and I'm getting the following error:

c:/yagarto4.6.0/lib/gcc/../../arm-none-eabi/sys-include/stdio.h:182:5: error: conflicting types for 'printf'

Is there a way to have Yagarto not load the standard libraries by default?

• Can you just remove/rename the original standard libraries? – Connor Wolf Aug 14 '12 at 22:34

• Thanks. Do you know if there is a way to only ignore the header for printf? – Randomblue Aug 14 '12 at 16:30