Re: C++11 headers missing in /usr/include
Re: C++11 headers missing in /usr/include
- Subject: Re: C++11 headers missing in /usr/include
- From: Jean-Daniel <email@hidden>
- Date: Fri, 20 Jan 2017 18:47:47 +0100
Le 20 janv. 2017 à 18:27, Matthew LeRoy < email@hidden> a écrit :
Jens,
Thanks for the reply, but that’s not exactly the question I was asking.
I’m looking for a way to get the C++11 headers to be installed somewhere under /usr/include, such that I can then add a path like “/usr/include/c++/…” to the compiler’s header search path, and have a statement like “#include <codecvt>” work correctly.
Right now, that statement doesn’t work because the <codecvt> header doesn’t exist under /usr/include (though most of the C and C++ headers do exist there; it’s just the C++11 headers that are missing).
To put it another way: I want the libc++/C++11 headers to actually exist on the filesystem (either directly or via a symlink) in a path that starts with “/usr/include/…”.
The C++ standard does not specify how the compiler should resolve system include (using « <> »). An include don ’t even have to exists on the file system. I can’t get why you insist on having theses header at a specific place as long as the compiler find them correctly.
If you compile your code in C++11 mode and using -stdlib=libc++, clang will find them.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden