### Author Topic: Use of Clang on Windows  (Read 10257 times)

#### SomeNoob

• Guest
##### Use of Clang on Windows
« on: June 06, 2014, 04:16:53 pm »
Hi guys. I just started developing using Code::Blocks, and I like it so far. I have it running on Win7, and I'm able to use GCC successfully. However, I'd like to use Clang too. I installed Clang and it seems to be detected and working just fine, but there seems to be some PATH issues with the libraries/includes.

I found all the common includes bundled with GCC/MinGW, such as iostream, located in C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.8.1\include\c++ for Clang to use. I added the path to the Build Options->Search Directories under the 'Compiler' tab. It included the file successfully when I built the project, however another error showed up.

Quote from: iostream
#include <bits/c++config.h>

Apparently, that file was not found. Except, the file DOES exist in the C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.8.1\include\c++\bits\ dir. Why can't it find it? Do I have to include that dir too?

Thanks guys!

#### edison

• Multiple posting newcomer
• Posts: 53
##### Re: Use of Clang on Windows
« Reply #1 on: June 06, 2014, 05:34:21 pm »