From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Sebastian Huber <sebastian.huber@embedded-brains.de>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Use <stdatomic.h> with GCC C Compiler
Date: Wed, 26 Jan 2011 08:57:00 -0000 [thread overview]
Message-ID: <AANLkTikoQ+mPz+kuHDD+sGWomJ0k1yjHdDzOu6EZKoe+@mail.gmail.com> (raw)
In-Reply-To: <4D3FD921.2040107@embedded-brains.de>
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)
prev parent reply other threads:[~2011-01-26 8:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 8:19 Sebastian Huber
2011-01-26 8:57 ` Jonathan Wakely [this message]
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=AANLkTikoQ+mPz+kuHDD+sGWomJ0k1yjHdDzOu6EZKoe+@mail.gmail.com \
--to=jwakely.gcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=sebastian.huber@embedded-brains.de \
/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).