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..???
which header files are available in cross compiler
- xenos
- 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
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.
Re: which header files are available in cross compiler
float.h, limits.h, stdarg.h, stddef.h, inttypes.h, stdbool.h (c99 only)
Re: which header files are available in cross compiler
Thanks i get it..JamesM wrote:float.h, limits.h, stdarg.h, stddef.h, inttypes.h, stdbool.h (c99 only)