当前位置:网站首页>Go的walk库报错
Go的walk库报错
2022-07-28 17:02:00 【l齐天】
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
直接使用
go build -ldflags="-H windowsgui -w -s"
将会报错,原因应该和库的调用有关。
改为以下格式即可
go build -ldflags="-linkmode internal"
当然如果想要去掉黑色框框可以使用下面的代码来编译
go build -ldflags="-H windowsgui -w -s -linkmode internal"
边栏推荐
- Functions brought by the binding of official account and video Number
- Openmv (IV) -- STM32 to realize feature detection
- Leetcode--45. jumping game II (greed)
- Mysql5.7 compressed package installation tutorial
- "Queen's day on March 8" has doubled the sales of on-site viewers and video numbers?
- Import the database backup of MySQL 8 into MySQL 5
- Musk uses live pigs to show a new brain computer interface technology: it can read pig brain information in real time
- 沪硅产业上半年营收8.5亿元,同比增长30.53%!各类产品认证正在加速
- Install tensorflow2.1 and pytorch1.4 on Jetson nano
- $(document).Width() in WebView is a value
猜你喜欢
随机推荐
余承东:华为正在想办法应对美国芯片封杀
苹果供应商JDI拟以6.75亿美元出售白山LCD工厂和设备
[untitled]
Leetcode systematic question brushing (II) -- greed, backtracking, recursion
Processes, threads, semaphores, and mutexes
华为中兴在英国败诉,不交专利授权费将被禁售!
个人制作:AD库、元件库、封装库及3D模型,免费
信号源原理简介
视频号账号变现的一些方法
Xcode packaging IPA configuration manual configuration certificate
Openmv (VI) -- STM32 realizes object recognition and handwritten digit recognition
Overflow failure of mobile terminal
视频号从每周2-3场到每天3场
Members who have opened a website need to download e-book messages for free
Yu Chengdong: Huawei is trying to cope with the US chip ban
Machine test questions for graduate students of Central South University
What is the future prospect of video Number e-commerce?
Leetcode systematic question brushing (I) -- linked list, stack, queue, heap
[dry goods] how to establish a close relationship between support and products?
视频号直播支持商品回放









