try adding -stdlib=libc++ -fexperimental-library , it may work for my case it worked using makefiles
-stdlib=libc++ -fexperimental-library