I am building a simple c++ program using clang++ and I am getting errors like below. I have added the gcc include paths manually as specified in the clang website. How do I resolve these?<div><br></div><div><div>In file included from a2.cpp:1:</div>

<div>In file included from /usr/include/c++/4.1.2/vector:65:</div><div>In file included from /usr/include/c++/4.1.2/bits/stl_algobase.h:69:</div><div>In file included from /usr/include/c++/4.1.2/iosfwd:45:</div><div>In file included from /usr/include/c++/4.1.2/i386-redhat-linux/bits/c++io.h:38:</div>

<div>In file included from /usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr.h:132:</div><div>/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:100:1: error: weakref declaration must have internal linkage</div>

<div>__gthrw(pthread_once)</div><div>^</div><div>/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:81:23: note: expanded from:</div><div>#define __gthrw(name) __gthrw2(__gthrw_ ## name,name,name)</div><div>                      ^</div>

<div>/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:72:46: note: expanded from:</div><div>  extern __typeof(type) name __attribute__ ((__weakref__(#name2))); \</div></div><div><br></div>