{"id":651,"date":"2022-11-29T15:58:52","date_gmt":"2022-11-29T07:58:52","guid":{"rendered":"http:\/\/blog.sorayuki.net\/?p=651"},"modified":"2022-11-29T16:27:41","modified_gmt":"2022-11-29T08:27:41","slug":"%e4%bd%bf%e7%94%a8vs2022%e7%bc%96%e8%af%917zip%e7%9a%84%e6%8e%a7%e5%88%b6%e5%8f%b0%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/blog.sorayuki.net\/?p=651","title":{"rendered":"\u4f7f\u7528VS2022\u7f16\u8bd17zip\u7684\u63a7\u5236\u53f0\u7a0b\u5e8f"},"content":{"rendered":"<p>7zip\u9664\u4e86\u5b98\u65b9\u4e0b\u8f7d\u5b89\u88c5\u7684\u56fe\u5f62\u754c\u9762\u5de5\u5177\u4e4b\u5916\uff0c\u662f\u6709\u72ec\u7acb\u63a7\u5236\u53f0\u7a0b\u5e8f\u7684\uff0c\u5728CPP\\7zip\\Bundles\u91cc\u9762\u3002\u8fd9\u4e2a\u63a7\u5236\u53f0\u7a0b\u5e8f\u8fd8\u5206\u4e3a\u5168\u529f\u80fd\u7248\uff087zz\uff09\u7684\u548c\u7cbe\u7b80\u7684\uff087zr\uff09\uff0c\u4f46\u5b98\u65b9\u90a3\u8fb9\u80fd\u4e0b\u8f7d\u5230\u7684\u53ea\u6709\u7cbe\u7b80\u7684\uff0c\u5168\u529f\u80fd\u7684\u90a3\u4e2a\u8981\u81ea\u5df1\u7f16\u8bd1\u3002<\/p>\n<p>\u5728\u7528VS2022\u7f16\u8bd1\u5168\u529f\u80fd\u7248\u7684\u65f6\u5019\u6211\u9047\u5230\u4e86\u95ee\u9898\u3002\u867d\u7136\u5b98\u65b9\u63d0\u4f9b\u4e86nmake\u7528\u7684\u7f16\u8bd1\u811a\u672c\uff0c\u4f46\u662f\u5b83\u8dd1\u8d77\u6765\u603b\u662f\u62a5\u9519\uff0c\u800c\u4e14\u62a5\u9519\u7684\u5730\u65b9\u5728Windows SDK\u91cc\u9762\u3001\u800c\u4e0d\u662f7z\u81ea\u5df1\u7684\u4ee3\u7801\u3002\u62a5\u7684\u9519\u8bef\u662fC2279\uff0c\u51fa\u73b0\u5728mapi.h\u5934\u6587\u4ef6\u91cc\u3001\u8bf8\u5982\u201c\u8fd9\u4e2atypedef\u5730\u65b9\u4e0d\u80fd\u5199throw\u6807\u8bc6\u7b26\u201d\u8fd9\u6837\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u7f51\u4e0a\u641c\u7d22\u4e4b\u540e\u80fd\u627e\u5230\u7684\u76f8\u5173\u7684\u4e1c\u897f\u4e0d\u592a\u591a\uff0c\u6709\u4e00\u4e2a\u8bf4\u6cd5\u662fC++\u6807\u51c6\u7684\u95ee\u9898\uff0c\u73b0\u5728\u7684Windows SDK\u9700\u8981\u914d\u5408\u65b0\u7248\u672c\u7684C++\u6807\u51c6\uff08C++17\u4e4b\u7c7b\uff09\u624d\u80fd\u6b63\u5e38\u4f7f\u7528\u3002\u770b\u4e86\u4e00\u4e0b7zip\u6e90\u7801\u91ccnmake\u811a\u672c\u52a0\u7684\u53c2\u6570\uff0c\u4e5f\u786e\u5b9e\u6ca1\u6709\u6307\u5b9a\u6807\u51c6\u3002<\/p>\n<p>\u672c\u6765\u60f3\u8bd5\u8bd5\u6362\u4e2a\u65e7\u7248\u7684Windows SDK\u884c\u4e0d\u884c\uff0c\u4e00\u770b\u8981\u4e0b\u8f7d\u90a3\u4e48\u591a\u4e1c\u897f\u2026\u2026\u70e6\u4e86\uff0c\u5c31\u6ca1\u8bd5\u3002\u6700\u540e\u6211\u7684\u505a\u6cd5\u662f\uff0c<span style=\"color: #ff0000;\">\u6253\u5f00CPP\u4e0b\u7684Build.mk\uff0c\u627e\u5230\u5b9a\u4e49 CFLAGS \u7684\u90a3\u4e00\u884c\uff0c\u52a0\u4e2a \/std:c++17<\/span>\u3002\u6587\u4ef6\u662f\u53ea\u8bfb\u7684\uff0c\u8981\u53bb\u6389\u53ea\u8bfb\u5c5e\u6027\u624d\u80fd\u4fdd\u5b58\u3002\u518d\u7f16\u8bd1\u4f1a\u53d8\u6210\u53e6\u5916\u7684\u9519\u8bef\uff0c\u62a5\u5f02\u5e38\u89c4\u8303\u4e0d\u5339\u914d\u3002\u6700\u7b80\u5355\u7684<span style=\"color: #ff0000;\">\u53bb\u6389\u8b66\u544a\u89c6\u4e3a\u9519\u8bef\uff08\u641c\u7d22\uff0c\u53bb\u6389-WX\uff09<\/span>\u53ef\u4ee5\u7f16\u8bd1\u901a\u8fc7\u3002<\/p>\n<p>\u53e6\u5916\u6211\u53d1\u73b0\u5b83\u6ca1\u52a0\u94fe\u63a5\u65f6\u4ee3\u7801\u751f\u6210\u8fd9\u6837\u7684\u4f18\u5316\uff0c\u6682\u65f6\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u3002\u8bd5\u7740\u5f00\u4e86\u4e00\u4e0b\uff0c\u75287zz b\u770b\u8dd1\u5206\uff0c\u548c\u4e0d\u5f00\u770b\u4e0d\u51fa\u533a\u522b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>7zip\u9664\u4e86\u5b98\u65b9\u4e0b\u8f7d\u5b89\u88c5\u7684\u56fe\u5f62\u754c\u9762\u5de5\u5177\u4e4b\u5916\uff0c\u662f\u6709\u72ec\u7acb\u63a7\u5236\u53f0\u7a0b\u5e8f\u7684\uff0c\u5728CPP\\7zip\\Bundles\u91cc\u9762\u3002\u8fd9\u4e2a &hellip; <a href=\"https:\/\/blog.sorayuki.net\/?p=651\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u4f7f\u7528VS2022\u7f16\u8bd17zip\u7684\u63a7\u5236\u53f0\u7a0b\u5e8f<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,11,15],"tags":[],"class_list":["post-651","post","type-post","status-publish","format-standard","hentry","category-vc","category-windows","category-15"],"_links":{"self":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts\/651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=651"}],"version-history":[{"count":0,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts\/651\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}