-
Notifications
You must be signed in to change notification settings - Fork 905
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
Error when building in windows #357
Comments
Closed because of duplicates, #100. All code tests and C dependencies use MinGw-64, TDM-GCC has not been tested. |
I complie lzib,meet an error.Then I change to MinGw-64, I meet the same error again. The errer |
Are you set the gcc environment variables? Or try |
Thank you very much. The error is lacking of '-a'. Thanks again |
x86_64-posix-sjlj 这个版本是可以的. |
When I try to build , I get the below error:
PS D:\Code_GO\ceshigongju> go build .\test.go
command-line-arguments
C:\Program Files\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
D:/Program Files/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lz
collect2.exe: error: ld returned 1 exit status
I use TDM-GCC-64.
The text was updated successfully, but these errors were encountered: