{"id":43304,"date":"2024-12-01T16:12:32","date_gmt":"2024-12-01T08:12:32","guid":{"rendered":"https:\/\/fwq.ai\/blog\/43304\/"},"modified":"2024-12-01T16:12:32","modified_gmt":"2024-12-01T08:12:32","slug":"%e8%bf%90%e8%a1%8c-gcc-%e5%a4%b1%e8%b4%a5%ef%bc%9awindows-%e4%b8%ad-golang-%e7%9a%84%e9%80%80%e5%87%ba%e7%8a%b6%e6%80%81-1","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/43304\/","title":{"rendered":"\u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1"},"content":{"rendered":"<p><b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span> <span>\u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1<\/span><\/p>\n<h1>\u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1<\/h1>\n<p><span>\u6765\u6e90\uff1astackoverflow<\/span><br \/>\n<span>2024-05-01 22:27:25<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662fGolang\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1\u300b\u5c31\u5f88\u9002\u5408\u4f60\uff01\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u5305\u62ec##content_title##\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5b9e\u6218\u5f00\u53d1\uff01<\/p>\n<p> \u95ee\u9898\u5185\u5bb9<br \/>\n <\/p>\n<p>\u5f53\u6211\u5728 golang \u4e2d\u8fd0\u884c\u4ee3\u7801 fyne package gui \u65f6\uff0c\u6211\u5728\u7ec8\u7aef\u4e2d\u6536\u5230\u6b64\u9519\u8bef\uff1a c:\\go\\pkg\\tool\\windows_amd64\\link.exe: \u8fd0\u884c gcc \u5931\u8d25: \u9000\u51fa\u72b6\u6001 1 c:\\users\\appdata\\local\\temp\\go-link-594045439\\go.o\uff1a\u6587\u4ef6\u65e0\u6cd5\u8bc6\u522b\uff1a\u6587\u4ef6\u683c\u5f0f\u65e0\u6cd5\u8bc6\u522b collect2.exe\uff1a\u9519\u8bef\uff1ald \u8fd4\u56de 1 \u9000\u51fa\u72b6\u6001\u3002 \u8bf7\u5e2e\u6211\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<pre>gcc -v\nUsing built-in specs.\nCOLLECT_GCC=C:\\TDM-GCC-64\\bin\\gcc.exe\nCOLLECT_LTO_WRAPPER=C:\/TDM-GCC-64\/bin\/..\/libexec\/gcc\/x86_64-w64-mingw32\/5.1.0\/lto-wrapper.exe\nTarget: x86_64-w64-mingw32\nConfigured with: ..\/..\/..\/src\/gcc-5.1.0\/configure --build=x86_64-w64-mingw32 --enable-targets=all --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-libgomp --enable-lto --enable-graphite --enable-cxx-flags=-DWINPTHREAD_STATIC --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-libstdcxx-debug --enable-threads=posix --enable-version-specific-runtime-libs --enable-fully-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --prefix=\/mingw64tdm --with-local-prefix=\/mingw64tdm --with-pkgversion=tdm64-1 --with-bugurl=http:\/\/tdm-gcc.tdragon.net\/bugs\nThread model: posix\ngcc version 5.1.0 (tdm64-1)<\/pre>\n<p> <\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p> <\/p>\n<p>\u6211\u4e5f\u9047\u5230\u4e86\u540c\u6837\u7684\u95ee\u9898\uff0c\u6700\u540e\u6211\u901a\u8fc7\u5b89\u88c5\u65e7\u7248\u672c\u7684 gcc \u89e3\u51b3\u4e86\u5b83\u3002<\/p>\n<p>\u51fa\u73b0\u95ee\u9898\u65f6\u6211\u7684go\u7248\u672c\u662f1.19.4\uff0cgcc\u7248\u672c\u662f12.2\uff0c\u6240\u4ee5\u6211\u91cd\u65b0\u5b89\u88c5\u4e86gcc 11.4\uff0c\u7136\u540e\u6211\u91cd\u65b0\u7f16\u8bd1\u4e00\u6b21\uff0c\u6210\u529f\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300a\u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u524d\u4f4d\u7f6e\uff1a &gt; &gt; &gt; &gt; \u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1 \u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1 \u6765\u6e90\uff1astackoverflow 2024-05-01 22:27:25 0\u6d4f\u89c8 \u6536\u85cf \u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662fGolang\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u8fd0\u884c gcc \u5931\u8d25\uff1aWindows \u4e2d golang \u7684\u9000\u51fa\u72b6\u6001 1\u300b\u5c31\u5f88\u9002\u5408\u4f60\uff01\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u5305\u62ec##content_title##\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5b9e\u6218\u5f00\u53d1\uff01 \u95ee\u9898\u5185\u5bb9 \u5f53\u6211\u5728 golang \u4e2d\u8fd0\u884c\u4ee3\u7801 fyne package gui \u65f6\uff0c\u6211\u5728\u7ec8\u7aef\u4e2d\u6536\u5230\u6b64\u9519\u8bef\uff1a c:\\go\\pkg\\tool\\windows_amd64\\link.exe: \u8fd0\u884c gcc \u5931\u8d25: \u9000\u51fa\u72b6\u6001 1 c:\\users\\appdata\\local\\temp\\go-link-594045439\\go.o\uff1a\u6587\u4ef6\u65e0\u6cd5\u8bc6\u522b\uff1a\u6587\u4ef6\u683c\u5f0f\u65e0\u6cd5\u8bc6\u522b collect2.exe\uff1a\u9519\u8bef\uff1ald \u8fd4\u56de 1 \u9000\u51fa\u72b6\u6001\u3002 \u8bf7\u5e2e\u6211\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002 gcc -v Using built-in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-43304","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/43304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=43304"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/43304\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=43304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=43304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=43304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}