Creating a C Library: Difference between revisions

Jump to navigation Jump to search
Delete section on GCC Fixincludes now that OS Specific Toolchain covers (and disables) this
[unchecked revision][unchecked revision]
m (Reformat)
(Delete section on GCC Fixincludes now that OS Specific Toolchain covers (and disables) this)
Line 123:
* [http://pubs.opengroup.org/onlinepubs/9699919799/ POSIX (2008)].
* GNU libc documentation.
 
== GCC Fixincludes ==
 
Unfortunately, a number of Operating Systems diverge from the conventional standards (see above), for instance breaking support for ANSI C. To counter that effect, GCC has support for post-processing the target system headers and fixing them to fix potential known compatibility problems. GCC does this at build time and stores the resulting headers in $EXEC_PREFIX/lib/gcc/$TARGET/x.y.z/include-fixed/. You may wish to check that directory and see if your cross-compiler has fixed your include files. This is often quite annoying as if you edit that header, you may need to completely rebuild your cross-compiler for the change to take effect. Rather, you should either disable fixincludes, or recognize it's value and fix your header files (there may be false positives, where you have to trick GCC into thinking your headers are actually acceptable).
 
== Include Guards ==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu