which header files are available in cross compiler

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
681anki
Posts: 7
Joined: Sun Aug 12, 2012 1:46 am

which header files are available in cross compiler

Post by 681anki »

hello,
I thought that there are no header files available in cross compiler to add those in programs..But when i use #include<stdarg> ,compiler didn't give me error ..That means it is available in cross-compiler..

So I want to know what are the header files available to use in cross-compiler...THANKS..

Is it the wrong question ,,,, i asked you..???
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: which header files are available in cross compiler

Post by xenos »

There are two types of compilation environments. "Hosted" environments are those where you have runtime libraries (such as compiling for Linux or Windows) and you can use all headers, including those that need library support such as <stdio>. "Freestanding" environments are those where you don't have any runtime support (such as a cross compiler for your OS kernel). In this case you can only use the "freestanding" headers. I think there should be a list of freestanding headers in the current C standard, or you can just ask Google.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: which header files are available in cross compiler

Post by JamesM »

float.h, limits.h, stdarg.h, stddef.h, inttypes.h, stdbool.h (c99 only)
681anki
Posts: 7
Joined: Sun Aug 12, 2012 1:46 am

Re: which header files are available in cross compiler

Post by 681anki »

JamesM wrote:float.h, limits.h, stdarg.h, stddef.h, inttypes.h, stdbool.h (c99 only)
Thanks i get it..:-)
Post Reply