Reference http://clang.llvm.org/get_started.html
Using Visual Studio to compile the VS version of Clang, you can use the debug version or release version
Debug version 7G more, release version 887M
Join the computer path
Then open the VS2012 Developer command prompt, echo%path% get vs Native environment
I have the following:
E:\Program Files\Microsoft Visual Studio 11.0\common7\ide\commonextensions\microsoft\testwindowc:\program Files (x86 ) \microsoft Sdks\f#\3.0\framework\v4.0e:\program Files\Microsoft Visual Studio 11.0\common7\idee:\program Files\ Microsoft Visual Studio 11.0\vc\bine:\program Files\Microsoft Visual Studio 11.0\common7\toolsc:\windows\ Microsoft.net\framework\v4.0.30319c:\windows\microsoft.net\framework\v3.5e:\program Files\Microsoft Visual Studio 11.0\vc\vcpackagesc:\program Files (x86) \html help workshope:\program Files\Microsoft Visual Studio 11.0\team Tools\ Performance Toolsc:\program files (x86) \ Windows Kits\8.0\bin\x86c:\program files (x86) \microsoft Sdks\windows\v8.0a\ BIN\NETFX 4.0 Toolsc:\program Files (x86) \microsoft Sdks\windows\v7.0a\bin\
Open Codeblocks, select the LLVM clang compiler,
Auto-detect paths, add additional paths
Add a macro definition _has_exceptions=0
OK, create console project, choose Clang Compiler, enjoy it!!
Windows Codeblocks clang 3.7.0