[cfe-dev] Clang errors out for cstdlib

Welson Sun via cfe-dev cfe-dev at lists.llvm.org
Mon Jul 31 14:57:41 PDT 2017


Hi,

I am using Clang 3.9 to compile some OpenCL code, the first error it throws
out is this:

In file included from
/tools/batonroot/rodin/devkits/lnx64/gcc-6.2.0/include/c++/6.2.0/stdlib.h:36:
/tools/batonroot/rodin/devkits/lnx64/gcc-6.2.0/include/c++/6.2.0/cstdlib:120:15:
error: expected '{'
namespace std _GLIBCXX_VISIBILITY(default)
              ^

There are a lot of more errors, all related to this
__GLIBCXX_VISIBILITY(default).


Any comments and/or suggestions?


Thanks,
- Welson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170731/0a5151d1/attachment.html>


More information about the cfe-dev mailing list