且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

可以在Windows应用商店使用MinGW构建?

更新时间:2023-09-29 17:07:10

您将需要使用的 Windows运行时C ++模板库(WRL)直接,你将无法使用 C ++ / CX 一>作为称为Mingw不支持它。除此之外,我认为你只需要的Windows 8 SDK ,那么你需要配置称为Mingw使用头文件和库。此外,您将无法使用 XAML 来描述你的用户界面,你必须手动创建你的UI在code。

You would need to use the Windows Runtime C++ Template Library (WRL) directly, you wouldn't be able to use C++/CX as Mingw doesn't support it. Other than that, I think you just need the Windows 8 SDK, then you need to configure Mingw to use the headers and libraries. Also, you won't be able to use XAML to describe your user interface, you'll have to manually create your UI in code.

而不是试图写入与MinGW和交叉使用Linux编译整个应用程序,你可以写与MinGW的核心库,然后写在使用Visual Studio防爆preSS(免费)库一个简单的用户界面包装。这样,你可以使用所有的不错的东西像XAML和裁判计数的实例。

Rather than attempt to write the entire application with mingw and cross compile it with linux, you can write your core libraries with mingw, then write a simple UI wrapper over the libraries using Visual Studio Express (free). That way you can use all the nice stuff like XAML and ref-counted instances.

这是我采取的方法 - 用C ++编写的库,然后它引用其他库的独立UI项目(使用XAML)。它运作良好。

This is the approach I have taken - using libraries written in C++, and then a separate UI project (using XAML) which references the other libraries. It works well.