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
win7 64-bit platforms, cgo compiler error #6731
Labels
Milestone
Comments
from windows xp, 32bit, test as following: E:\win_amd64_cgo_test_OK_version>go build test.go # command-line-arguments C:\DOCUME~1\kovi\LOCALS~1\Temp\go-build030420267\command-line-arguments\_obj\tes t.cgo2.o: In function `cgo_2c321763ad73_Cfunc_x': E:/win_amd64_cgo_test_OK_version/test.go:37: undefined reference to `x' collect2.exe: error: ld returned 1 exit status E:\win_amd64_cgo_test_OK_version>go build E:\win_amd64_cgo_test_OK_version>win_amd64_cgo_test_OK_version.exe Invoking c library... Hello World>>>>>>> Done 13 E:\win_amd64_cgo_test_OK_version> |
I don't see a bug here. "go build test.go" builds the single program test.go. It doesn't do cgo support or anything else. "go build" builds the package in the directory in which you run the command. It does cgo support. It seems that you are showing that "go build" works but "go build test.go" fails. That is expected. Please reopen and explain if I have misunderstood. Status changed to WorkingAsIntended. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by anwar.root:
Attachments:
The text was updated successfully, but these errors were encountered: