{"id":517,"date":"2014-09-01T00:38:02","date_gmt":"2014-08-31T16:38:02","guid":{"rendered":"http:\/\/blog.sorayuki.net\/?p=517"},"modified":"2016-07-27T02:43:12","modified_gmt":"2016-07-26T18:43:12","slug":"wdk%e7%bc%96%e8%af%91boostregex","status":"publish","type":"post","link":"https:\/\/blog.sorayuki.net\/?p=517","title":{"rendered":"WDK\u7f16\u8bd1boost(1.34.1)::regex"},"content":{"rendered":"<p>Windows Driver Kit\u91cc\u9762\u7684STL\u5e93\u554a\u5565\u7684\uff0c\u57fa\u672c\u662f\u505c\u7559\u5728VC6\u65f6\u4ee3\u3002\u4e0d\u8fc7\u4e5f\u6709\u4e00\u4e2a\u597d\u5904\uff0c\u53ef\u4ee5\u94fe\u63a5\u5230msvcrt.dll\u3001msvcp60.dll\uff0c\u56e0\u4e3a\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5927\u5bb6\u90fd\u6709\uff0c\u6240\u4ee5\u53ef\u4ee5\u51cf\u5c0f\u6700\u540e\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7684\u4f53\u79ef\u3002\u7136\u540e\u6bd4\u8d77VC6.0\uff0cWDK\u53ef\u4ee5\u76f4\u63a5\u4ece\u5fae\u8f6f\u90a3\u8fb9\u4e0b\u8f7d\u6765\uff0c\u800cVC6\u76f4\u5230\u6700\u540e\u4e5f\u6ca1\u50cf2005\u30012008\u30012010\u30012012\u30012013\u90a3\u6837\u6709\u4e2aExpress\u7684\u514d\u8d39\u7248\u5565\u7684\u3002\u4e8e\u662f\u5982\u679c\u60f3\u81ea\u5df1\u5f04\u4e86\u7b80\u5355\u7684\u5c0f\u4e1c\u897f\u5982\u679c\u60f3\u8981\u4f53\u79ef\u5c0f\u3001\u8981\u94fe\u63a5\u5230msvcrt.dll\uff0c\u611f\u89c9WDK\u662f\u4e00\u4e2a\u633a\u597d\u7684\u9009\u62e9\u2026\u2026<\/p>\n<p><!--more--><\/p>\n<p>\u4e0d\u8fc7WDK\u91cc\u9762\u7684\u4e1c\u897f\u5e76\u4e0d\u5b8c\u5584\uff0c\u6240\u4ee5Windows SDK\u53ef\u80fd\u8fd8\u662f\u8981\u51c6\u5907\u4e00\u4e2a\u3002\u8003\u8651\u5230\u8981\u628a\u5b83\u5f53\u4f5cVC6\u6765\u5904\u7406\uff0c\u6240\u4ee5\u6700\u65b0\u80fd\u7528\u7684\u4e5f\u5c31\u662fPlatform SDK 2003 February\u3002\u5176\u5b9e\u672c\u6765\u6ca1\u6253\u7b97\u88c5\u8fd9\u4e2a\uff0c\u56e0\u4e3aWDK\u91cc\u9762\u5df2\u7ecf\u5e26\u4e86\u4e00\u5957Windows\u7684\u5934\u6587\u4ef6\u548c\u5e93\uff0c\u4f46\u662f\u5728\u7f16\u8bd1boost\u7684\u90a3\u4e2abjam\u7684\u65f6\u5019\uff0c\u53d1\u73b0WDK\u91cc\u9762\u6ca1\u6709TlHlp32.h\u6587\u4ef6\uff08\u5f53\u7136\u524d\u63d0\u662f\u4f60\u5df2\u7ecf\u628aapi\u3001crt\u90a3\u4e9b\u7684\u6587\u4ef6\u5939\u90fd\u52a0\u5230Include\u73af\u5883\u53d8\u91cf\u91cc\u4e86\uff09\uff0c\u4e8e\u662f\u77e5\u9053\u5b83\u5e26\u7684\u4e1c\u897f\u8fd8\u662f\u6709\u5c11\u7684\uff0c\u5c31\u88c5\u4e2aSDK\u6765\u8865\u5145\u4e00\u4e0b\u3002<\/p>\n<p>\u5b89\u88c5SDK\u7684\u65f6\u5019\u4e5f\u8fd8\u9047\u5230\u4e86\u95ee\u9898\u3002\u56e0\u4e3a\u8fd9\u4e2aSDK\u7248\u672c\u6bd4\u8f83\u8001\uff0c\u5b83\u6709x86\u548cia64\u4e24\u4e2asetup.exe\u3001setup64.exe\u4f46\u662f\u5374\u6ca1\u6709\u7ed9amd64\uff08x86-64\uff09\u7528\u7684setup\uff0c\u4e8e\u662f\u65e0\u6cd5\u542f\u52a8\u5b89\u88c5\u7a0b\u5e8f\u3002\u4e0a\u7f51\u641c\u7d22\u89e3\u51b3\u65b9\u6848\u662f\u76f4\u63a5\u5230\u6587\u4ef6\u5939\u91cc\u9762\u53bb\u8fd0\u884c\u5b83\u7684\u90a3\u4e9bmsi\u5b89\u88c5\u5305\u6765\u5b89\u88c5\u7ec4\u4ef6\u3002\u90a3\u4e9bmsi\u5728\u5b89\u88c5\u7684\u65f6\u5019\u4f1a\u63d0\u793a\u9009\u62e9\u8981\u5b89\u88c5\u7684\u7ec4\u4ef6\u3001\u8981\u5b89\u88c5\u5230\u4ec0\u4e48\u6587\u4ef6\u5939\u7684\u3002<\/p>\n<p>\u73b0\u5728\u7684Boost\u5df2\u7ecf\u629b\u5f03\u5bf9VC6.0\u7684\u652f\u6301\u4e86\uff0c\u7f51\u4e0a\u627e\u4e86\u4e00\u5708\u76f8\u5173\u4fe1\u606f\uff0c\u80fd\u652f\u6301VC6\u7684\u6700\u65b0\u7248\u672c\u662f1.34.1\uff08\u4e5f\u6709\u8bf41.34.1\u7684Regex\u7f16\u8bd1\u8d77\u6765\u6709\u95ee\u9898\uff0c1.33.1\u66f4\u5bb9\u6613\u641e\u5b9a\uff0c\u4e0d\u8fc7\u6211\u6ca1\u8bd5\u9a8c\u8fc7\uff09\uff0c\u90a3\u5c31\u627e\u5230\u8fd9\u4e2a\u6307\u5b9a\u7248\u672c\u4e0b\u8f7d\u6765\uff0c\u89e3\u538b\u3002<\/p>\n<p>\u7136\u540eboost\u89e3\u538b\u4e4b\u540e\u9700\u8981\u4e00\u4e2abjam\u63a7\u5236\u4e4b\u540e\u7684\u7f16\u8bd1\u8fc7\u7a0b\uff0c\u5728boost\\tools\\jam\\src\u91cc\u53ef\u4ee5\u627e\u5230\u4e00\u4e2abuild.bat\uff0c\u7528\u5b83\u6765\u6784\u5efabjam.exe\u3002\u5982\u679c\u53ea\u6709WDK\u3001\u5e76\u4e14\u5728bat\u7684\u53c2\u6570\u6307\u5b9a\u4e86MSVC\u3001\u73af\u5883\u53d8\u91cf\u6307\u5b9a\u4e86MSVCDir\u4e3aWDK\u7684\u6587\u4ef6\u5939\uff08\u5177\u4f53\u5f00build.bat\u8fdb\u53bb\u770b\uff0c\u5f88\u5bb9\u6613\u627e\u5230\uff09\uff0c\u5c31\u4f1a\u51fa\u73b0\u524d\u9762\u8bf4\u7684\u627e\u4e0d\u5230TlHlp32.h\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c<a href=\".\/?p=515\">\u524d\u4e00\u7bc7\u535a\u5ba2<\/a> \u6709\u63d0\u5230WDK\u7684\u7f16\u8bd1\u5668\u548cmsvcp60.dll\u914d\u5408\u6709\u95ee\u9898\uff0c\u7f16\u8bd1\u5668\u9ed8\u8ba4wchar_t\u5c31\u662fwchar_t\u4f46\u662fmsvcp60\u8ba4\u4e3a\u5b83\u662funsigned short\uff0c\u4e8e\u662f\u5728\u94fe\u63a5\u7684\u65f6\u5019\u51fa\u73b0\u7b26\u53f7\u94fe\u4e0d\u4e0a\u7684\u95ee\u9898\u3002\u81ea\u5df1\u7f16\u8bd1\u7684\u65f6\u5019\u8fd8\u597d\u529e\uff0c\u77e5\u9053\/Zc:wchar_t\uff0c\u4f46\u662f\u7531\u522b\u4eba\u7f16\u8bd1\u7684\u65f6\u5019\u95ee\u9898\u5c31\u6709\u70b9\u9ebb\u70e6\uff0c\u56e0\u4e3a\u4e0d\u77e5\u9053\u600e\u4e48\u52a0\u3002\u6211\u7814\u7a76\u4e86\u5f88\u4e45\u603b\u4e4b\u4e5f\u6ca1\u627e\u5230\u65b9\u6cd5\u2026\u2026\u4e0d\u7ba1\u600e\u4e48\u6837\uff0c\u5c31\u7b97\u5f00-n\u7684\u65f6\u5019\u4e5f\u80fd\u770b\u5230\/Zc:wchar_t\u4e0d\u8fc7\u770b\u4e0d\u5230\/Zc:wchar_t\u3002\u8fd9\u6837\u7684\u547d\u4ee4\u884c\uff1a<br \/>\nbjam stage release toolset=msvc-6.0 --with-regex runtime-link=shared link=static<br \/>\n\u6700\u7ec8\u5f00\u5230boost\\tools\\build\\v2\\tools\\msvc.jam\u6587\u4ef6\u91cc\u9762\uff0c\u627e\u5230\u4e86\/Zc:wchar_t\uff0c\u6539\u6210\/Zc:wchar_t-\uff0c\u518d\u7f16\u8bd1\uff0c\u6362\u4e86\u4e2a\u9519\u8bef\uff0c\u8bf4swprintf\u51fd\u6570\u4ec0\u4e48\u4ec0\u4e48\u4e0d\u5339\u914d\u3002\u7f51\u4e0a\u4e00\u641c\uff0c\u539f\u6765\u5b83\u6709\u4e2aBOOST_NO_SWPRINTF\u5b8f\uff0c\u7d22\u6027\u5c31\u7528\u4e0a\u4e86\u3002\u5c31\u662f\u8bf4\u628a<br \/>\n\/Zc:wchar_t<br \/>\n\u6539\u6210\u4e86<br \/>\n\/Zc:wchar_t- \/DBOOST_NO_SWPRINTF<\/p>\n<p>\u518d\u7f16\u8bd1\uff0c\u7ec8\u4e8e\u80fd\u51falib\u6587\u4ef6\u4e86\u3002<\/p>\n<p>\u4ed4\u7ec6\u67e5\u770b\u8fd9\u4e00\u884c\u7684\u4e0a\u4e0b\u6587\uff0c\u53ef\u4ee5\u53d1\u73b0\u5b83\u662f\u5728\u4f60\u7f16\u8bd1\u5668\u6307\u5b9a\u662fVC6.0\u7684\u65f6\u5019\u52a0\u5165\u7684\u7279\u5b9a\u5904\u7406\u3002\u4f46\u662f\uff0c\u660e\u660e\u6709\u4e00\u4e2a&lt;cxxflags&gt;\u5728\u4e0a\u9762\uff0c\u8bd5\u4e86\u597d\u51e0\u79cd\u547d\u4ee4\u884c\u5199\u6cd5\uff0c\u6700\u7ec8\u4e5f\u6ca1\u80fd\u6210\u529f\u628a\u53c2\u6570\u901a\u8fc7\u547d\u4ee4\u884c\u5f04\u8fdb\u53bb\u3002<\/p>\n<p>\u603b\u4e4b\u7ecf\u8fc7\u8fd9\u6837\u4e00\u641e\uff0c\u6700\u7ec8\u6210\u529f\u5728WDK\u91cc\u7528\u8d77Boost.regex\u4e86\u3002\u987a\u4fbf\u4e00\u8bf4\uff0c\u6d4b\u8bd5\u7684\u7ed3\u679c\uff0c\u56e0\u4e3aregex\u5f15\u64ce\u52a0\u5165\u8fdb\u53bb\u7684\u5173\u7cfb\uff0c\u6700\u7ec8\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u5927\u5c0f\u53ea\u6bd4VC2010\u7528\u81ea\u5e26regex\u3001\u9759\u6001\u94fe\u63a5\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5927\u5c0f\u5c0f\u4e8660KB\u5de6\u53f3\uff08\u539f\u6765180KB\u73b0\u5728120KB\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Driver Kit\u91cc\u9762\u7684STL\u5e93\u554a\u5565\u7684\uff0c\u57fa\u672c\u662f\u505c\u7559\u5728VC6\u65f6\u4ee3\u3002\u4e0d\u8fc7\u4e5f\u6709\u4e00\u4e2a\u597d\u5904\uff0c\u53ef\u4ee5\u94fe\u63a5\u5230 &hellip; <a href=\"https:\/\/blog.sorayuki.net\/?p=517\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">WDK\u7f16\u8bd1boost(1.34.1)::regex<\/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,10],"tags":[],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-vc","category-10"],"_links":{"self":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts\/517","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=517"}],"version-history":[{"count":0,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts\/517\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}