threads.h included in GCC?
-
- Member
- Posts: 61
- Joined: Tue Sep 13, 2022 9:29 pm
- Libera.chat IRC: FunnyGuy9796
threads.h included in GCC?
I was wondering if the file threads.h was included in the GCC compiler because I had seen mixed answers online.
Re: threads.h included in GCC?
The compiler-provided headers that come with gcc can be found in the "ginclude" directory: https://github.com/gcc-mirror/gcc/tree/ ... c/ginclude
"threads.h" is not among them.
"threads.h" is not among them.
-
- Member
- Posts: 78
- Joined: Tue Jun 07, 2022 11:23 am
- Libera.chat IRC: Cyao
- Location: France
- Contact:
Re: threads.h included in GCC?
Well that directory doesn't include all headers from gcc, the best way to see headers your gcc provides, is to at your gcc toolchain's include folder (for me it's /usr/local/Cellar/x86_64-elf-gcc/12.2.0/lib/gcc/x86_64-elf/12.2.0/include). There is a bunch of other headers (avx512...). But still, "threads.h" is not thereklange wrote:The compiler-provided headers that come with gcc can be found in the "ginclude" directory: https://github.com/gcc-mirror/gcc/tree/ ... c/ginclude