This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Use <stdatomic.h> with GCC C Compiler


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]