public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: gcc-help@gcc.gnu.org
Subject: Use <stdatomic.h> with GCC C Compiler
Date: Wed, 26 Jan 2011 08:19:00 -0000	[thread overview]
Message-ID: <4D3FD921.2040107@embedded-brains.de> (raw)

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.

             reply	other threads:[~2011-01-26  8:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26  8:19 Sebastian Huber [this message]
2011-01-26  8:57 ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D3FD921.2040107@embedded-brains.de \
    --to=sebastian.huber@embedded-brains.de \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).