[cfe-dev] Windows 'Roadmap'

Francois Pichet pichet2000 at gmail.com
Sun Jun 5 19:03:17 PDT 2011


On Sun, Jun 5, 2011 at 4:08 PM, Cédric Venet <cedric.venet at laposte.net> wrote:
>
>> MSVC 2010 STL:
>>   - template function explicit specialization at class scope
>>   - Unqualified lookup into dependent bases of class templates
>
> I have another problem on windows with MSVC 2010. If I use the default
> options, and include <vector>, I get:
>
> D:/Prog/llvm/bin/bin/Release/../lib/clang/3.0/include/mmintrin.h:28:2:
> error:
>      #error "MMX instruction set not enabled"
>

Try to compile with -nobuiltininc. The problem is that some MSVC
include have the same name as the clang builtin headers. When
compiling MSVC code you really want clang to pick the MSVC one.

FYI here is the clang options command I use to test clang against MSVC code:
In the absence of a clang CL.EXE compatible driver this set of option
kind of emulate cl.exe


clang -cc1 -fcxx-exceptions -fdelayed-template-parsing -fms-extensions
-std=c++0x -I "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Include"   -I"C:\Program Files (x86)\Microsoft
Visual Studio 10.0\VC\atlmfc\include" -I"C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\include"
-Wno-invalid-token-paste -D_MSC_VER=1600  -nobuiltininc
-DSECURITY_WIN32 -DWIN32 -DWSMAN_API_VERSION_1_0 -w
-D_MSC_FULL_VER=160040219 -D_MSC_EXTENSIONS
-D_NATIVE_NULLPTR_SUPPORTED -D_MT -D_DLL -fsyntax-only
-fno-operator-names test.cpp 2> error_clang.txt




More information about the cfe-dev mailing list