[cfe-users] Clang support of C++14 on Centos

Alex Chen via cfe-users cfe-users at lists.llvm.org
Mon Feb 8 16:12:15 PST 2016


 
 Hi,
    I have been using Clang 3.4.2 on CentOS for a while and everything is
working fine.  When I try to turn on c++14 support by setting the
­std=c++11y flag, I get compilation errors like:
......
 
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
memory:79:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
functional:55:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
tuple:39:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
array:38:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
stdexcept:39:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
string:52:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
bits/basic_string.h:2815:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
ext/string_conversions.h:43:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/
cstdio:120:11: error: no member named 'gets' in the global namespace
  using ::gets;

Is this a problem in clang or a problem in GNU on CentOS and is there a way
to fix it?

Thanks

Alex


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20160208/d67308d6/attachment.html>


More information about the cfe-users mailing list