Skip to content
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

[Feature Request] Would you mind supporting MSVC besides MinGW? #358

Open
chenzhekl opened this issue Sep 13, 2018 · 6 comments
Open

[Feature Request] Would you mind supporting MSVC besides MinGW? #358

chenzhekl opened this issue Sep 13, 2018 · 6 comments
Labels
feature-request This issue requests for a new feature waiting-on-go

Comments

@chenzhekl
Copy link

Would you mind supporting MSVC besides MinGW?

@chenzhekl chenzhekl changed the title ]Feature Request] Would you mind supporting MSVC besides MinGW? [Feature Request] Would you mind supporting MSVC besides MinGW? Sep 13, 2018
@veeableful
Copy link
Contributor

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 🙂

@veeableful veeableful added the feature-request This issue requests for a new feature label Sep 14, 2018
@veeableful veeableful added this to the v0.4 milestone Sep 14, 2018
@chenzhekl
Copy link
Author

Thanks! Good to know you are considering that.

@veeableful
Copy link
Contributor

Hi @chenzhekl, I just found out that Go itself hasn't supported MSVC out-of-the-box (seems like it is coming though according to this).

However, it seems possible to convert an existing MSVC.dll to MinGW-compatible one as shown here. Would that work for your case? If not, could I know why?

@chenzhekl
Copy link
Author

chenzhekl commented Sep 18, 2018

@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.

@veeableful veeableful removed this from the v0.4 milestone Sep 19, 2018
@jclc
Copy link
Contributor

jclc commented Sep 21, 2018

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.

@gonutz
Copy link
Contributor

gonutz commented Feb 16, 2019

You might be interested in issue 382. If we can remove CGo on Windows, you only need a Go compiler and the SDL2.dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requests for a new feature waiting-on-go
Projects
None yet
Development

No branches or pull requests

4 participants