I recently switch to C++ for my kernel (which is still pretty small) and I use a cross compiler for it.
I wanted to install the C and C++ freestanding headers which seems to work but the C++ headers (<cstdint>, <cstdarg>, ...) don't include the respective C headers.
These are the configuration flags I used:
Code: Select all
--target=${target} --disable-nls --enable-languages=c,c++ --without-headers --disable-hosted-libstdcxx
Code: Select all
#if _GLIBCXX_HAVE_STDINT_H
# include <stdint.h>
#endif
Code: Select all
/* Define to 1 if you have the <stdint.h> header file. */
/* #undef _GLIBCXX_HAVE_STDINT_H */
Thanks for reading!