Includefiles

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
gizmostripe

Includefiles

Post 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.
lacrymology

Re:Includefiles

Post 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
Post Reply