【问题标题】:g++ windows using DirectX?使用 DirectX 的 g++ 窗口?
【发布时间】:2011-01-17 03:26:38
【问题描述】:

是否可以在 Windows 上使用 g++ 编译代码并使用 DirectX?使用 Visual Studio 编译器是否存在主要的速度差异?由于 DirectX 已经是一个编译库,我认为没有区别。是否有任何类型的许可可以防止这种情况发生?

【问题讨论】:

    标签: windows cross-platform directx g++


    【解决方案1】:

    MinGW-32 可以正常工作,无论是在 Windows 上还是从 Linux 交叉编译。

    Cross compiling Direct3D on Linux with mingw

    请注意,不幸的是 MSVC 仍然可以生成更快的代码,但您需要进行测试以衡量差异有多大。

    【讨论】:

      【解决方案2】:

      您可以在 DirectX 中使用 mingw(gcc/g++ 的 Windows 端口)。

      http://mingw-starter.blogspot.com/2008/02/mingw-directx.html

      【讨论】:

        猜你喜欢
        • 2014-01-05
        • 1970-01-01
        • 2014-04-29
        • 2015-05-26
        • 1970-01-01
        • 2012-03-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多