-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: -buildmode=c-shared not working in Go1.10 #23589
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
Please show us the output of |
@ianlancetaylor
Output:
|
Thanks. What does |
not reproduced on Windows7 64bit with c469521.
|
Output of
|
No. please try |
@mattn
Output:
Also, can you try building |
Sorry s/-build-mode/-buildmode/ |
@mattn |
|
@mattn But just to be sure, here is the dump:
|
Why do you use 32bit C compiler on 64bit OS? |
What? Didnt know... Installing 64bit now... sorry |
@mattn Output of
Sorry, I dont use MinGW... |
I am still getting this:
|
You installed i686 which is 32 bit, the 64 bit one is named x86_64 |
@AlexRouSg |
I don't have access to a windows machine so all I can say is if that doesn't work try changing the exception. |
@AlexRouSg Output of
|
That is the dll. Now I suggest you google how to create shared libraries in Go as the code you linked is a program not a library so it would not work as you are expecting. @ianlancetaylor |
@AlexRouSg Thanks |
Yes just add .dll or add the flag I can't help you much on what to read, just use google and ask around in the proper place |
Ok thank you guys for helping me out! Thanks 👍 |
Object file format not recognized by
gcc
I ran this command:
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: