OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 5:10 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: C++ freestanding headers issues with C freestanding headers
PostPosted: Wed Jan 25, 2023 8:35 am 
Offline

Joined: Wed Jan 25, 2023 8:21 am
Posts: 1
Hi to everyone reading this.

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:
--target=${target} --disable-nls --enable-languages=c,c++ --without-headers --disable-hosted-libstdcxx


In e.g. the <cstdint> header the following #if is not satisfied:

Code:
#if _GLIBCXX_HAVE_STDINT_H
# include <stdint.h>
#endif


because in the <c++config.h> the _GLIBCXX_HAVE_STDINT_H macro is not defined:

Code:
/* Define to 1 if you have the <stdint.h> header file. */
/* #undef _GLIBCXX_HAVE_STDINT_H */


I couldn't find a solution to why this is and I hope that someone out there knows would could be wrong.

Thanks for reading!


Top
 Profile  
 
 Post subject: Re: C++ freestanding headers issues with C freestanding head
PostPosted: Thu Jan 26, 2023 2:58 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5069
This sounds very similar to a recent discussion elsewhere. Is the problem fixed by this patch?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group