Closed marcoippolito closed 6 years ago
It looks like it might be a libc++ configuration issue. The main difference I can see with the two examples you gave is the lack of -stdlib=libc++
. Maybe the latter is falling back to stdlibc++ instead.
I think there are some different modes you can compile libc++ with, some of which don’t support exceptions. Try checking your libc++ installation and check that you can build the same trivial example with -stlib=libc++
.
Compiling this file with clang 6.0.1 :
Compiling:
But when compiling such a simple file:
clang -v clang version 6.0.1
So... how to solve the problem? Marco