Is it possible to compile code usin开发者_开发问答g g++ on Windows and to use DirectX? Are there major speed differences from using the Visual Studio compiler? Since DirectX is already a compiled library I assume there's no difference. Does any kind of licensing prevent this?
MinGW-32 will work fine, either on Windows or cross-compiling from Linux.
Cross compiling Direct3D on Linux with mingw
Note that unfortunately MSVC still produces faster code, you will need to test to gauge how much of a difference though.
You can use mingw (a Windows port of gcc/g++) with DirectX.
http://mingw-starter.blogspot.com/2008/02/mingw-directx.html
精彩评论