Open chenzhekl opened 5 years ago
Hi @chenzhekl, certainly. I'll put this as one of the things to support for the next release. Seems like it would be useful for a lot of people :slightly_smiling_face:
Thanks! Good to know you are considering that.
@veeableful Thanks for your investigation. I want MSVC support because MSVC toolchain is used by most Windows programmers, and being able to use go-sdl2
without extra installation will be a merit. However, a MinGW compiler is still required after converting MSVC DLLs to MinGW compatible format. Probably we should wait for MSVC support to land on Go.
I don't think supporting MSVC is a priority for the Go team. It has incompatible linkage with GCC when compiling C++ and their C support is laughably bad. If you need to link with DLLs to which you don't have source code access, you could either make a C-linked wrapper for it or try Clang; apparently they added MSVC-linking recently.
Would you mind supporting MSVC besides MinGW?