I'm trying to compile a fairly simple "hello world" program using stl headers with clang on windows, and I'm unable to do that.
I've compiled Clang 3.1 from repository using VC11 Beta without problems. Now I'm trying to use the already compiled Clang to compile a "hello world" sample using the VC11 headers but I get a bunch of errors which seems to show Clang is getting lost with some macro magic for simulated variadic templates on VC11, although I'm not making direct use of this macro magic.
My include directories:
- C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include
- C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include
- C:\Program Files (x86)\Windows Kits\8.0\Include\um
- C:\Program Files (x86)\Windows Kits\8.0\Include\shared
- C:\Program Files (x86)\Windows Kits\8.0\Include\winrt
I get errors like:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xstddef:1094:24: error: '_Nil' does not refer to a value
And a bunch of others related to macros.
Was someone able to overcome this macro issues? Is there a problem with clang preprocessor on expading this macros?
__declspec
. – ildjarn__declspec
. Clang does not. – Nicol Bolas