User forums > General (but related to Code::Blocks)
Use of Clang on Windows
(1/1)
SomeNoob:
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>
--- End quote ---
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:
http://forums.codeblocks.org/index.php/topic,18964.0.html
Navigation
[0] Message Index
Go to full version