Page 1 of 1

Includefiles

Posted: Tue Jul 29, 2003 12:52 pm
by gizmostripe
Ok, when im coming to compile my kernel the one i use (djgpp) has its own headers. But i want to use my own OS headers (for obvious reasons)

So how do you make it so that in C when compiling on djgpp that your headers are used (stdio, string etc.) not the one the compilers use.

Thanks in advance.

Re:Includefiles

Posted: Tue Jul 29, 2003 1:01 pm
by lacrymology
Look into the following flags:

-ffreestanding
-nostdlib
-fno-builtin
-fno-rtti
-fno-exceptions

These or a combination of them should do the trick.

-m