English 中文(简体)
是否有可能将C++来源与Clang 3.1加上VC11 Beta头盔汇编成册?
原标题:Is it possible to compile C++ sources with Clang 3.1 plus VC11 Beta headers?

我试图利用在窗户上带有部族的圈子,编制一个相当简单的“灰色世界”方案,而我无法这样做。

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.

我包括名录:

  • C:Program Files (x86)Microsoft Visual Studio 11.0VCinclude
  • C:Program Files (x86)Microsoft Visual Studio 11.0VCatlmfcinclude
  • C:Program Files (x86)Windows Kits8.0Includeum
  • C:Program Files (x86)Windows Kits8.0Includeshared
  • C:Program Files (x86)Windows Kits8.0Includewinrt

我的错误如下:

C:Program files (x86)MicrosoftudioView 11.0VCincludexstddef:1094:24:差错:_Nil没有提及价值

而另一些则涉及宏观问题。

是否有人能够克服这一宏观问题? 部族前加工商是否在花费这些宏观产品上存在问题?

问题回答

微软C++的头盔涉及一些尚未获得支持的延伸和辅助因素。 Clang可以与Windows上的C头脑一道制定方案,但尚未成为C++的主人。

由于C运行时间,你可能使用不同的C++标准图书馆,而这种图书馆只能依靠C的运行时间。 我先尝试了它,但或许可以这样作。

I am very sure you will not be able to use clang for compiling some headers like C:Program Files (x86)Windows Kits8.0Includewinrt. The reason is because Windows 8 brings a C++ version with some extension. This version has be called C++/CX.

某些延期(如ref category)不是标准C++。 我认为,这正在发出信息,说明你试图编纂一些词汇模板。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签