当前位置:网站首页>Go's walk library reports an error
Go's walk library reports an error
2022-07-28 18:23:00 【L Qi Tian】
C:\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
C:/TDM-GCC-64/bin/…/lib/gcc/x86_64-w64-mingw32/9.2.0/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `C:\Users\lu\AppData\Local\Temp\go-link-755177635\000000.o’ is incompatible with i386:x86-64 output
C:/TDM-GCC-64/bin/…/lib/gcc/x86_64-w64-mingw32/9.2.0/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: $WORK\b001\exe\a.out.exe: .rsrc merge failure: corrupt .rsrc section
collect2.exe: error: ld returned 1 exit status
Use it directly
go build -ldflags="-H windowsgui -w -s"
Will be an error , The reason should be related to the call of the Library .
Change to the following format
go build -ldflags="-linkmode internal"
Of course, if you want to remove the black box, you can use the following code to compile
go build -ldflags="-H windowsgui -w -s -linkmode internal"
边栏推荐
- 电源适配器 全球定义
- ADS仿真 之 直流仿真示例
- ADS仿真 之 交流仿真和S参数仿真示例
- Advanced Design System(ADS)2009 射频仿真入门
- What is the future prospect of video Number e-commerce?
- The revenue of Shanghai silicon industry in the first half of the year was 850million yuan, an increase of 30.53% year on year! Various product certifications are accelerating
- 信号源原理简介
- 矢量网络分析仪(矢网)的校准
- 有一种密码学专用语言叫做ASN.1
- Temporary URL
猜你喜欢
随机推荐
NDK 系列(5):JNI 从入门到实践,爆肝万字详解!
【译】创意编码之噪音
How does the video Number import the public domain traffic to the private domain
Syntax error: non declaration statement outside function bodygo and syntax error: unexpected {, expect
.net swagger
ADS仿真 之 交流仿真和S参数仿真示例
MediaTek has submitted an application to the US side, striving to supply goods to China after September 15
ADS仿真 之 直流仿真示例
Andorid: pit encountered by zxing.demo QR code scanning framework
【干货】如何建立支持和产品之间的密切关系?
Mysql操作大全
Ren Zhengfei's latest voice: American politicians hope Huawei will die, and the desire to survive inspires Huawei
Jetson Nano 上安装 tensorflow2.1 和 pytorch1.4
Live video Number supports product playback
Digital filter (VI) -- design FIR filter
个人制作:AD库、元件库、封装库及3D模型,免费
MongoDB创建索引
Advanced Design System(ADS)2009 射频仿真入门
"Queen's day on March 8" has doubled the sales of on-site viewers and video numbers?
The growth path of hardware engineers (0) -- Understanding components









