-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: -buildmode=dll is still not working in Go 1.10 #23588
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
Comments
Where did you get buildmode=dll from? As far as I can tell the arg is still buildmode=c-shared |
@AlexRouSg |
I think you are mistaking a suggestion for the actual implementation. Nowhere is buildmode=dll mentioned as being added. Even in that issue, they used buildmode=c-shared to create dlls. |
So, how do I make a DLL? |
As I've said in both replies, use buildmode=c-shared |
I am getting this:
|
You need to install mingw For questions please use https://github.com/golang/go/wiki/Questions |
Now I am getting this:
|
Thank you @AlexRouSg, I thought that -buildmode=dll was a thing. |
You need mingw-64. I just was able to link an amd64 DLL using that. |
Thanks @hank |
@AlexRouSg any solution to build windows dll? |
@muhammadmuzzammil1998 |
I read this issue, #11058, and it says that will be fixed in Go1.10 but its not working in Go1.10rc1.
I ran this command:
What did you expect to see?
I expected to see a
.dll
for my program.What did you see instead?
Output:
My Go Version: go version go1.10rc1 windows/amd64
More info:
C:\Users\Muzzammil\go\src\golang.org\x\build\version\go1.10rc1\go1.10rc1.exe
so full command is:Thanks.
The text was updated successfully, but these errors were encountered: