<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm trying to compile a fairly simple C++ program with clang++. I get the following error message<div><br></div><div><div>vec.cpp:1:10: fatal error: 'iostream' file not found</div><div>#include <iostream></div><div>         ^</div><div>1 diagnostic generated.</div><div><br></div><div>After looking around a bit on the clag website I came across this wonderful hack</div><div><br></div><div>- Look for the comment "FIXME: temporary hack:
    hard-coded paths" in <tt>clang/lib/Frontend/InitHeaderSearch.cpp</tt> and
    change the lines below to include that path.</div><div><br></div><div>After adding the relevant paths I still get this linker error</div><div><br></div><div><div>/tmp/cc-TKUPKY.o:(.gnu.linkonce.r._ZZ18__gthread_active_pvE20__gthread_active_ptr+0x0): undefined reference to `__gthrw_pthread_cancel(unsigned long)'</div><div>collect2: ld returned 1 exit status</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div>Has anyone come across a similar situation? thanks,</div><div><br></div><div>Salman</div></div></div></body></html>