-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gfx module doesn't compile with MingW compiler when building for D3D11 #294
Comments
Yeah, I guess these are the bitfields in GfxTypes.h, with the move to sokol_gfx.h those will be gone as well. Right now the Windows-specific code basically assumes that you're compiling with the Visual Studio compiler. Did you try compiling with clang? I've read that recent versions can directly consume Windows headers, so I guess it's more compatible with Visual Studio's idea of the C++ standard. |
I tried
|
did you try clang-cl? (or the ms compatibility flags for clang). maybe it helps. |
Could I request a change of the name of this issue to show that it's specifically D3D11 that doesn't build, not the Gfx module as a whole? |
On that note, is there some config I'm missing that can be used to build for MinGW with OpenGL? Also, is there a way to cross-compile for MinGW off of Linux? |
Current code is using forward-declarations of enumerations, which is not accepted by MingW, although VS is fine with them. This leads to errors like:
Note: so far MingW also requires this flag:
-mno-ms-bitfields
for compilation of the Gfx module.The text was updated successfully, but these errors were encountered: