<div dir="ltr">Good day,<br>I would like to ask about the behavior of '--with-gcc-toolchain' configuration option.<br>I am currently trying out clang 3.4 with gcc 4.7 and for this, I used the centos devtools repo.<br>
GCC 4.7 is installed into /opt/centos/devtoolset-1.0/.<br>I configured clang 3.4 like below:<br>CC=/opt/centos/devtoolset-1.0/root/usr/bin/gcc CXX=/opt/centos/devtoolset-1.0/root/usr/bin/g++ <configure> --with-gcc-toolchain=/opt/centos/devtoolset-1.0/root/usr/<br>
<br>Make is ok but when I try clang-check it doesn't seem to find 'iostream'.<br>I thought with the option --with-gcc-toolchain, clang and its tools will automatically be pointed the gcc 4.7 directories.<br>Perhaps I am missing something here or my assumptions are flawed. Can someone share some insights?.<br>
<br>Using the -v option on clang-check, the "Selected GCC installation:" is blank and the list of include directories don't include the 4.7 directories.<br>Explicitly specifying the include directories (-I option) in the clang-check invocation will work but is there another workaround?<br>
I would prefer to resolve such issues in the 'environment setup' aspect and not during 'application usage'.<br><br>Thank you very much,<br>David<br><br></div>