I followed the excellent walkthrough on how to compile clang(++) with OpenMP support for Mac OS X found here. However, while compiling a simple test program:
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "Hello world!" << std::endl;
return 0;
}
...I simply get:
$> clang2++ -Wall -std=c++11 -stdlib=libc++ -fopenmp -o openmp openmp.cpp
openmp.cpp:2:10: fatal error: 'iostream' file not found
#include <iostream>
My newly compiled clang project doesn't seem to include libc++ and even if the standard directories are included ("standard" afaik), i.e:
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
...it still doesn't work. Has anyone else encountered this and found a solution? Thanks.