1. Did you only add
-stdlib=libc++
when linking, and forgot to add it when compiling? 2. It shouldn't be necessary in the first place, make sure you have both gcc
and g++
installed (Clang sometimes get confused if the latest gcc
version you have is newer than your latest g++
, I think?). 3. GCC has -fsanitize=address
too, I believe?