标签:
参考http://clang.llvm.org/get_started.html
Debug版本7G多,release版本887M
加入计算机path
然后打开“VS2012 开发人员命令提示”,echo %path%得到VS的本机环境
我的如下:
E:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow C:\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\BIN E:\Program Files\Microsoft Visual Studio 11.0\Common7\Tools C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Windows\Microsoft.NET\Framework\v3.5 E:\Program Files\Microsoft Visual Studio 11.0\VC\VCPackages C:\Program Files (x86)\HTML Help Workshop E:\Program Files\Microsoft Visual Studio 11.0\Team Tools\Performance Tools C:\Program Files (x86)\Windows Kits\8.0\bin\x86 C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
自动侦测路径,添加附加路径
添加宏定义_HAS_EXCEPTIONS=0
OK,创建控制台工程,选择clang编译器,好好享受吧!!
windows codeblocks clang 3.7.0
标签:
原文地址:http://my.oschina.net/u/659405/blog/377241