* Use <stdatomic.h> with GCC C Compiler
@ 2011-01-26 8:19 Sebastian Huber
2011-01-26 8:57 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2011-01-26 8:19 UTC (permalink / raw)
To: gcc-help
Hello,
the experimental part of the GCC C++ compiler provides the <atomic> and
<stdatomic.h> header files and implementation which may be part of a future C++
and C standard. As far as I understand the <stdatomic.h> is provided for C
programs? If I include <stdatomic.h> in a C source file and try to compile it
with the GCC C compiler I get this: fatal error: stdatomic.h: No such file or
directory. Do I need some magic options to let the GCC C compiler find this
header file, e.g. -I /ugly/path/to/include/c++?
Have a nice day!
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Use <stdatomic.h> with GCC C Compiler
2011-01-26 8:19 Use <stdatomic.h> with GCC C Compiler Sebastian Huber
@ 2011-01-26 8:57 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2011-01-26 8:57 UTC (permalink / raw)
To: Sebastian Huber; +Cc: gcc-help
On 26 January 2011 08:19, Sebastian Huber wrote:
> Hello,
>
> the experimental part of the GCC C++ compiler provides the <atomic> and
> <stdatomic.h> header files and implementation which may be part of a future C++
> and C standard. As far as I understand the <stdatomic.h> is provided for C
> programs? If I include <stdatomic.h> in a C source file and try to compile it
> with the GCC C compiler I get this: fatal error: stdatomic.h: No such file or
> directory. Do I need some magic options to let the GCC C compiler find this
> header file, e.g. -I /ugly/path/to/include/c++?
Yes, it's installed as part of libstdc++, which means it's only found
using the search paths of the C++ compiler. To find it with the C
compiler you need to specify the path (or link to it or copy it
elsewhere)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-26 8:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 8:19 Use <stdatomic.h> with GCC C Compiler Sebastian Huber
2011-01-26 8:57 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).