<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>踩坑 on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/%E8%B8%A9%E5%9D%91/</link><description>Recent content in 踩坑 on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 27 Aug 2026 18:30:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/%E8%B8%A9%E5%9D%91/index.xml" rel="self" type="application/rss+xml"/><item><title>Go 1.25 在 Windows 编译的程序无法在你的电脑上运行？原因竟然是这个！</title><link>https://leafcxy.github.io/posts/2026/08/go-1-25-windows-dwarf5-cannot-run/</link><pubDate>Thu, 27 Aug 2026 18:30:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/08/go-1-25-windows-dwarf5-cannot-run/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文来自知乎专栏：&lt;a href="https://zhuanlan.zhihu.com/p/1961514850497836260"&gt;zhuyasen - Go有引力&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;升级到 Go 1.25 之后，在 Windows 上编译出来的 &lt;code&gt;.exe&lt;/code&gt; 双击却提示 &lt;strong&gt;「此应用无法在你的电脑上运行」&lt;/strong&gt;？明明 Go 1.24 还好好的，到底发生了什么？答案就藏在一个叫 &lt;strong&gt;DWARF v5&lt;/strong&gt; 的调试信息格式里。&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="根本原因"&gt;根本原因&lt;/h2&gt;
&lt;p&gt;从 &lt;strong&gt;Go 1.25&lt;/strong&gt; 开始，官方默认启用了 &lt;code&gt;dwarf5&lt;/code&gt; 实验性功能，编译生成可执行文件时会使用 &lt;strong&gt;DWARF v5 调试信息格式&lt;/strong&gt;。&lt;/p&gt;</description></item></channel></rss>