{"id":44885,"date":"2025-06-21T06:06:01","date_gmt":"2025-06-20T22:06:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/44885.html"},"modified":"2025-06-21T06:06:01","modified_gmt":"2025-06-20T22:06:01","slug":"mingw-w64%e7%9a%84%e5%ae%89%e8%a3%85%e8%af%a6%e7%bb%86%e6%ad%a5%e9%aa%a4c_c%e7%9a%84%e7%bc%96%e8%af%91%e5%99%a8gcc%e3%80%81g%e7%9a%84windows%e7%89%88%ef%bc%8cwin10%e3%80%81win11%e7%9c%9f%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/44885.html","title":{"rendered":"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09"},"content":{"rendered":"<h5>\u6587\u7ae0\u76ee\u5f55<\/h5>\n<ul>\n<li>1\u3001MinGW\u7684\u5b9a\u4e49<\/li>\n<li>2\u3001MinGW\u7684\u4e3b\u8981\u7ec4\u4ef6<\/li>\n<li>3\u3001MinGW-w64\u4e0b\u8f7d\u4e0e\u5b89\u88c5<\/li>\n<li>\n<ul>\n<li>\n<ul>\n<li>3.1\u3001\u4e0b\u8f7d\u89e3\u538b\u5b89\u88c5\u5730\u5740<\/li>\n<li>3.2\u3001MinGW-w64\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>4\u3001\u9a8c\u8bc1MinGW\u662f\u5426\u5b89\u88c5\u6210\u529f<\/li>\n<li>5\u3001\u7f16\u5199\u4e00\u6bb5\u7b80\u5355\u7684\u4ee3\u7801\u9a8c\u8bc1\u4e0b<\/li>\n<li>6\u3001\u603b\u7ed3<\/li>\n<\/ul>\n<h3><span id=\"1MinGW_2\"><\/span>1\u3001MinGW\u7684\u5b9a\u4e49<\/h3>\n<p>MinGW&#xff08;Minimalist GNU for Windows&#xff09; \u662f\u4e00\u4e2a\u7528\u4e8e Windows \u5e73\u53f0\u7684\u5f00\u53d1\u5de5\u5177\u96c6&#xff0c;\u5b83\u63d0\u4f9b\u4e86\u4e00\u7ec4 GNU \u5de5\u5177\u548c\u5e93&#xff0c;\u53ef\u4ee5\u7528\u4e8e\u7f16\u8bd1\u548c\u6784\u5efa\u672c\u5730\u7684 Windows \u5e94\u7528\u7a0b\u5e8f\u3002MinGW \u7684\u76ee\u6807\u662f\u5728 Windows \u73af\u5883\u4e0b\u63d0\u4f9b\u7c7b\u4f3c\u4e8e Unix\/Linux \u73af\u5883\u4e0b\u7684\u5f00\u53d1\u5de5\u5177&#xff0c;\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u8f7b\u677e\u5730\u5728 Windows \u4e0a\u7f16\u5199\u548c\u7f16\u8bd1 C\u3001C&#043;&#043; \u7b49\u7a0b\u5e8f\u3002<\/p>\n<h3><span id=\"2MinGW_5\"><\/span>2\u3001MinGW\u7684\u4e3b\u8981\u7ec4\u4ef6<\/h3>\n<ul>\n<li>\n<p>GCC&#xff08;GNU Compiler Collection&#xff09;&#xff1a; GCC \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7f16\u8bd1\u5668\u5957\u4ef6&#xff0c;\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00&#xff0c;\u5305\u62ec C\u3001C&#043;&#043;\u3001Fortran \u7b49\u3002\u5728 MinGW \u4e2d&#xff0c;GCC \u88ab\u7528\u6765\u7f16\u8bd1\u548c\u751f\u6210 Windows \u5e73\u53f0\u4e0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>Binutils&#xff1a;Binutils \u662f\u4e00\u7ec4\u7528\u4e8e\u5904\u7406\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u5de5\u5177&#xff0c;\u5305\u62ec\u6c47\u7f16\u5668\u3001\u94fe\u63a5\u5668\u3001\u76ee\u6807\u6587\u4ef6\u5904\u7406\u5668\u7b49\u3002\u5728 MinGW \u4e2d&#xff0c;Binutils \u7528\u4e8e\u5c06\u7f16\u8bd1\u540e\u7684\u6e90\u4ee3\u7801\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884c\u65f6\u5e93&#xff08;Runtime Libraries&#xff09;&#xff1a; MinGW \u63d0\u4f9b\u4e86 Windows \u4e0b\u6240\u9700\u7684 C \u548c C&#043;&#043; \u8fd0\u884c\u65f6\u5e93&#xff0c;\u8fd9\u4e9b\u5e93\u662f\u5728\u7f16\u8bd1\u548c\u94fe\u63a5\u65f6\u6240\u9700\u8981\u7684&#xff0c;\u4ee5\u4fbf\u5728 Windows \u73af\u5883\u4e0b\u8fd0\u884c\u7a0b\u5e8f\u3002<\/p>\n<\/li>\n<li>\n<p>MSYS&#xff08;Minimal SYStem&#xff09;&#xff1a; MSYS \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 Unix-like \u73af\u5883&#xff0c;\u5b83\u5728 Windows \u4e0a\u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u672c\u7684 Unix \u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u66f4\u65b9\u4fbf\u5730\u4f7f\u7528\u547d\u4ee4\u884c\u8fdb\u884c\u5f00\u53d1\u548c\u6784\u5efa\u3002<\/p>\n<\/li>\n<\/ul>\n<p>MinGW \u53ef\u4ee5\u4e0e\u5176\u4ed6\u5f00\u53d1\u5de5\u5177\u96c6&#xff08;\u5982 Visual Studio&#xff09;\u4e00\u8d77\u4f7f\u7528&#xff0c;\u4f46\u5b83\u7684\u91cd\u70b9\u662f\u63d0\u4f9b\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u5f0f\u6765\u5728 Windows \u4e0a\u8fdb\u884c\u5f00\u53d1&#xff0c;\u65e0\u9700\u4f9d\u8d56\u590d\u6742\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff08;IDE&#xff09;\u3002MinGW \u7684\u4f7f\u7528\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u66f4\u63a5\u8fd1\u6807\u51c6\u7684\u5f00\u53d1\u73af\u5883&#xff0c;\u540c\u65f6\u4e5f\u65b9\u4fbf\u4e86\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f&#xff0c;MinGW \u4e0e MSYS2 \u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u9879\u76ee&#xff0c;\u867d\u7136\u5b83\u4eec\u7684\u540d\u79f0\u548c\u76ee\u6807\u76f8\u4f3c&#xff0c;\u4f46\u6709\u4e00\u4e9b\u533a\u522b\u3002MSYS2 \u5728 MinGW \u7684\u57fa\u7840\u4e0a\u63d0\u4f9b\u4e86\u66f4\u5148\u8fdb\u7684\u5305\u7ba1\u7406\u7cfb\u7edf\u548c\u4e00\u4e9b\u989d\u5916\u7684\u5de5\u5177&#xff0c;\u4f7f\u5f97\u5728 Windows \u4e0a\u7684\u5f00\u53d1\u66f4\u52a0\u4fbf\u6377\u3002<\/p>\n<h3><span id=\"3MinGWw64_18\"><\/span>3\u3001MinGW-w64\u4e0b\u8f7d\u4e0e\u5b89\u88c5<\/h3>\n<h5><span id=\"31_19\"><\/span>3.1\u3001\u4e0b\u8f7d\u89e3\u538b\u5b89\u88c5\u5730\u5740<\/h5>\n<p>\u5b98\u7f51\u4e0b\u8f7d\u592a\u6162&#xff0c;\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u7f51\u7edc\u95ee\u9898\u4e0b\u8f7d\u4e00\u76f4\u5931\u8d25&#xff0c;\u8fd9\u91cc\u76f4\u63a5\u7ed9\u51fa\u6700\u65b0\u7248\u5b89\u88c5\u5305\u4e0b\u8f7d\u5730\u5740&#xff1a; https:\/\/pan.quark.cn\/s\/71fd11deb795<\/p>\n<ul>\n<li>\u7136\u540e\u89e3\u538b\u5c31\u884c: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220557-6855db45d39b3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u89e3\u538b\u5b8c\u6bd5\u5dee\u4e0d\u591a\u5c31\u662f\u8fd9\u4e2a\u6837\u5b50: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220558-6855db4604a5d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u7136\u540e\u518dbin\u76ee\u5f55\u91cc\u9762\u5c31\u53ef\u4ee5\u627e\u5230g&#043;&#043;.exe\u6216\u8005gcc.exe&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220558-6855db4636f7f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h5><span id=\"32MinGWw64_41\"><\/span>3.2\u3001MinGW-w64\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e<\/h5>\n<ul>\n<li>\u70b9\u51fb\u6b64\u7535\u8111\u7684\u5c5e\u6027: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220558-6855db466a05e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u70b9\u51fb\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220558-6855db4686997.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u70b9\u51fb\u73af\u5883\u53d8\u91cf: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220558-6855db469ee05.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u70b9\u51fb\u7cfb\u7edf\u53d8\u91cf\u4e2d\u65b0\u5efa\u4e00\u4e2a\u73af\u5883\u53d8\u91cf&#xff0c;\u73af\u5883\u53d8\u91cf\u540d\u5b57\u6211\u8fd9\u91cc\u662fMinGW_HOME,\u503c\u662f\u4f60\u5b89\u88c5\u7684\u8def\u5f84&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220558-6855db46b549d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220558-6855db46d614d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u7136\u540e\u70b9\u51fb\u7cfb\u7edf\u53d8\u91cf\u4e2d\u7684PATH\u73af\u5883\u53d8\u91cf&#xff0c;\u65b0\u5efa\u4e00\u4e2a\u73af\u5883\u53d8\u91cf&#xff0c;\u8def\u5f84\u662f\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684bin\u76ee\u5f55\u8def\u5f84,\u56e0\u4e3agcc.exe\u548cg&#043;&#043;.exe\u90fd\u5728\u8fd9\u91cc\u9762&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220559-6855db47480d0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220559-6855db478c6f9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u6216\u8005\u4f60\u4e5f\u53ef\u4ee5\u8fd9\u6837\u8bbe\u7f6e\u8def\u5f84: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220559-6855db47a4d93.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h3><span id=\"4MinGW_56\"><\/span>4\u3001\u9a8c\u8bc1MinGW\u662f\u5426\u5b89\u88c5\u6210\u529f<\/h3>\n<ul>\n<li>windows&#043;r\u6253\u5f00\u547d\u4ee4\u884c\u7ba1\u7406\u5668\u5e76\u4e14\u8f93\u5165cmd: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220559-6855db47be7ce.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u7136\u540e\u8f93\u5165gcc -v \u6216\u8005g&#043;&#043; -v \u6216\u8005 gcc &#8211;version \u6216\u8005 g&#043;&#043; &#8211;version: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220559-6855db47ce73f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220600-6855db4801f30.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h3><span id=\"5_62\"><\/span>5\u3001\u7f16\u5199\u4e00\u6bb5\u7b80\u5355\u7684\u4ee3\u7801\u9a8c\u8bc1\u4e0b<\/h3>\n<p>&#8211; \u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u6216\u8005\u4efb\u610f\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2amain.cpp: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220600-6855db481b44a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/li>\n<\/ul>\n<p>#include&lt;iostream&gt;<br \/>\n#include&lt;stdio.h&gt;<br \/>\nint main(){<br \/>\n    std::cout&lt;&lt;&#034;mingw&#034;&lt;&lt;std::endl;<br \/>\n    printf(&#034;mingw\\\\n&#034;);<br \/>\n    return 0;<br \/>\n}<\/p>\n<ul>\n<li>\u5728\u8fd9\u4e2a\u8def\u5f84\u4e0b\u8f93\u5165cmd\u8fdb\u5165\u547d\u4ee4\u884c\u6a21\u5f0f: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220600-6855db484492c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u8f93\u5165g&#043;&#043; maiin.cpp\u5c31\u4f1a\u751f\u6210a.exe: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220600-6855db487135d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u76f4\u63a5 a.exe&#xff0c;\u5c31\u4f1a\u8f93\u51fa\u7ed3\u679c&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220600-6855db489cd0f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h3><span id=\"6_83\"><\/span>6\u3001\u603b\u7ed3<\/h3>\n<p>gcc\u6216\u8005g&#043;&#043;\u662fc\/c&#043;&#043;\u7684\u7f16\u8bd1\u5668&#xff0c;\u4f46\u662f\u901a\u5e38\u5728 Linux \u4e0a\u624d\u80fd\u7528\u3002\u5982\u679c\u8981\u5728windows\u4e0a\u7528&#xff0c;\u6211\u4eec\u8981\u501f\u52a9MinGW\u4f7f\u7528\u5b83\u3002<\/p>\n<p>MinGW&#xff08;Minimalist GNU for Windows&#xff09;\u662f\u4e00\u4e2a\u5f00\u53d1\u5de5\u5177\u96c6&#xff0c;\u4e3b\u8981\u7528\u4e8e\u5728 Windows \u73af\u5883\u4e0b\u4f7f\u7528\u7c7b\u4f3c\u4e8e Unix\/Linux \u73af\u5883\u4e0b\u7684 GNU \u5de5\u5177&#xff0c;\u5305\u62ec gcc&#xff08;GNU Compiler Collection&#xff09;\u548c g&#043;&#043;&#xff08;GNU C&#043;&#043; Compiler&#xff09;\u7b49\u7f16\u8bd1\u5668\u3002<\/p>\n<p>MinGW \u63d0\u4f9b\u4e86\u4e00\u79cd\u5728 Windows \u4e0a\u8fdb\u884c C \u548c C&#043;&#043; \u7f16\u7a0b\u7684\u65b9\u5f0f&#xff0c;\u4f7f\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u5e38\u89c1\u7684\u7f16\u8bd1\u5668\u3001\u94fe\u63a5\u5668\u548c\u5de5\u5177&#xff0c;\u4ece\u800c\u80fd\u591f\u5c06\u6e90\u4ee3\u7801\u7f16\u8bd1\u6210\u53ef\u6267\u884c\u6587\u4ef6&#xff0c;\u5c31\u50cf\u5728 Unix\/Linux \u73af\u5883\u4e0b\u4e00\u6837\u3002\u901a\u8fc7 MinGW&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u6807\u51c6\u7684 C\/C&#043;&#043; \u7f16\u8bd1\u5668&#xff0c;\u540c\u65f6\u4e5f\u53ef\u4ee5\u8bbf\u95ee\u4e00\u4e9b\u5e38\u7528\u7684\u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u4ece\u800c\u5b9e\u73b0\u5728 Windows \u4e0a\u8fdb\u884c\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u3002<\/p>\n<p>MinGW \u7684\u76ee\u6807\u4e4b\u4e00\u662f\u63d0\u4f9b\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5f00\u53d1\u73af\u5883&#xff0c;\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u5728 Windows \u4e0a\u7f16\u5199\u548c\u7f16\u8bd1\u539f\u751f\u7684 C\/C&#043;&#043; \u7a0b\u5e8f&#xff0c;\u800c\u65e0\u9700\u4f9d\u8d56\u4e8e\u5927\u578b\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff08;IDE&#xff09;\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528 gcc \u548c g&#043;&#043; \u547d\u4ee4\u6765\u7f16\u8bd1\u548c\u94fe\u63a5\u7a0b\u5e8f&#xff0c;\u4e5f\u53ef\u4ee5\u914d\u5408\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668\u8fdb\u884c\u5f00\u53d1\u3002<\/p>\n<p>\u603b\u4e4b&#xff0c;MinGW \u662f\u5728 Windows \u5e73\u53f0\u4e0a\u4f7f\u7528 gcc \u548c g&#043;&#043; \u7b49 GNU \u5de5\u5177\u7684\u4e00\u79cd\u65b9\u5f0f&#xff0c;\u9002\u7528\u4e8e\u5e0c\u671b\u5728 Windows \u4e0a\u8fdb\u884c C \u548c C&#043;&#043; \u5f00\u53d1\u7684\u5f00\u53d1\u8005\u3002 \u5927\u578b\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff08;IDE&#xff09;\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528 gcc \u548c g&#043;&#043; \u547d\u4ee4\u6765\u7f16\u8bd1\u548c\u94fe\u63a5\u7a0b\u5e8f&#xff0c;\u4e5f\u53ef\u4ee5\u914d\u5408\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668\u8fdb\u884c\u5f00\u53d1\u3002**<\/p>\n<p>\u603b\u4e4b&#xff0c;MinGW \u662f\u5728 Windows \u5e73\u53f0\u4e0a\u4f7f\u7528 gcc \u548c g&#043;&#043; \u7b49 GNU \u5de5\u5177\u7684\u4e00\u79cd\u65b9\u5f0f&#xff0c;\u9002\u7528\u4e8e\u5e0c\u671b\u5728 Windows \u4e0a\u8fdb\u884c C \u548c C&#043;&#043; \u5f00\u53d1\u7684\u5f00\u53d1\u8005\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.4k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf27\u6b21\u3002MinGW\uff08Minimalist GNU for Windows\uff09 \u662f\u4e00\u4e2a\u7528\u4e8e Windows\u5e73\u53f0\u7684\u5f00\u53d1\u5de5\u5177\u96c6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u7ec4 GNU\u5de5\u5177\u548c\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u7f16\u8bd1\u548c\u6784\u5efa\u672c\u5730\u7684 Windows \u5e94\u7528\u7a0b\u5e8f\u3002MinGW\u7684\u76ee\u6807\u662f\u5728 Windows \u73af\u5883\u4e0b\u63d0\u4f9b\u7c7b\u4f3c\u4e8e Unix\/Linux\u73af\u5883\u4e0b\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u8f7b\u677e\u5730\u5728 Windows \u4e0a\u7f16\u5199\u548c\u7f16\u8bd1C\u3001C++ \u7b49\u7a0b\u5e8f\u3002GCC\uff08GNU Compiler Collection\uff09\uff1a GCC\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7f16\u8bd1\u5668\u5957\u4ef6\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec C\u3001C++\u3001Fortran_mingw64<\/p>\n","protected":false},"author":2,"featured_media":44867,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,174,149,371],"topic":[],"class_list":{"0":"post-44885","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-c","10":"tag-windows","11":"tag-371"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/44885.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.4k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf27\u6b21\u3002MinGW\uff08Minimalist GNU for Windows\uff09 \u662f\u4e00\u4e2a\u7528\u4e8e Windows\u5e73\u53f0\u7684\u5f00\u53d1\u5de5\u5177\u96c6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u7ec4 GNU\u5de5\u5177\u548c\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u7f16\u8bd1\u548c\u6784\u5efa\u672c\u5730\u7684 Windows \u5e94\u7528\u7a0b\u5e8f\u3002MinGW\u7684\u76ee\u6807\u662f\u5728 Windows \u73af\u5883\u4e0b\u63d0\u4f9b\u7c7b\u4f3c\u4e8e Unix\/Linux\u73af\u5883\u4e0b\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u8f7b\u677e\u5730\u5728 Windows \u4e0a\u7f16\u5199\u548c\u7f16\u8bd1C\u3001C++ \u7b49\u7a0b\u5e8f\u3002GCC\uff08GNU Compiler Collection\uff09\uff1a GCC\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7f16\u8bd1\u5668\u5957\u4ef6\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec C\u3001C++\u3001Fortran_mingw64\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/44885.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-20T22:06:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220557-6855db45d39b3.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44885.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/44885.html\",\"name\":\"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-20T22:06:01+00:00\",\"dateModified\":\"2025-06-20T22:06:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/44885.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/44885.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44885.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/44885.html","og_locale":"zh_CN","og_type":"article","og_title":"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.4k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf27\u6b21\u3002MinGW\uff08Minimalist GNU for Windows\uff09 \u662f\u4e00\u4e2a\u7528\u4e8e Windows\u5e73\u53f0\u7684\u5f00\u53d1\u5de5\u5177\u96c6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u7ec4 GNU\u5de5\u5177\u548c\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u7f16\u8bd1\u548c\u6784\u5efa\u672c\u5730\u7684 Windows \u5e94\u7528\u7a0b\u5e8f\u3002MinGW\u7684\u76ee\u6807\u662f\u5728 Windows \u73af\u5883\u4e0b\u63d0\u4f9b\u7c7b\u4f3c\u4e8e Unix\/Linux\u73af\u5883\u4e0b\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u8f7b\u677e\u5730\u5728 Windows \u4e0a\u7f16\u5199\u548c\u7f16\u8bd1C\u3001C++ \u7b49\u7a0b\u5e8f\u3002GCC\uff08GNU Compiler Collection\uff09\uff1a GCC\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7f16\u8bd1\u5668\u5957\u4ef6\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec C\u3001C++\u3001Fortran_mingw64","og_url":"https:\/\/www.wsisp.com\/helps\/44885.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-20T22:06:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220557-6855db45d39b3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/44885.html","url":"https:\/\/www.wsisp.com\/helps\/44885.html","name":"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-20T22:06:01+00:00","dateModified":"2025-06-20T22:06:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/44885.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/44885.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/44885.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MinGW-w64\u7684\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4(c_c++\u7684\u7f16\u8bd1\u5668gcc\u3001g++\u7684windows\u7248\uff0cwin10\u3001win11\u771f\u5b9e\u53ef\u7528\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=44885"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44885\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/44867"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=44885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=44885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=44885"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=44885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}