{"id":199667,"date":"2020-11-04T21:58:22","date_gmt":"2020-11-04T13:58:22","guid":{"rendered":"http:\/\/4563.org\/?p=199667"},"modified":"2020-11-04T21:58:22","modified_gmt":"2020-11-04T13:58:22","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88-msvc-%e7%9a%84-lnk2019-%e9%94%99%e8%af%af%e4%bf%a1%e6%81%af%e4%b8%ad%e5%87%bd%e6%95%b0%e5%90%8d%e5%89%8d%e9%9d%a2%e9%83%bd%e6%9c%89%e5%a4%9a%e4%bd%99%e7%9a%84%e4%b8%8b","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=199667","title":{"rendered":"\u4e3a\u4ec0\u4e48 MSVC \u7684 LNK2019 \u9519\u8bef\u4fe1\u606f\u4e2d,\u51fd\u6570\u540d\u524d\u9762\u90fd\u6709\u591a\u4f59\u7684\u4e0b\u5212\u7ebf?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e3a\u4ec0\u4e48 MSVC \u7684 LNK2019 \u9519\u8bef\u4fe1\u606f\u4e2d,\u51fd\u6570\u540d\u524d\u9762\u90fd\u6709\u591a\u4f59\u7684\u4e0b\u5212\u7ebf?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AndyAO <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4f8b\u5982<\/p>\n<p><code>error LNK2019: unresolved external symbol _snprintf referenced in function _elog_hexdump<\/code>.<\/p>\n<p>\u8868\u8fbe\u7684\u610f\u601d\u662f\u5728\u51fd\u6570<code>elog_hexdump<\/code>\u4e2d\u5f15\u7528\u4e0d\u5b58\u5728\u7684\u7b26\u53f7<code>snprintf<\/code>,\u800c\u4e0d\u662f<code>_snprintf<\/code>.<\/p>\n<p>\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837?<\/p>\n<p>\u5728\u67e5\u770bLinker Tools Error LNK2019 | Microsoft Docs,\u5e76\u4e14\u53bb\u8c37\u6b4c\u641c\u7d22\u540e\u4e5f\u6ca1\u6709\u627e\u5230\u7b54\u6848.<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4257191\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mithril <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u6765\u8bf4\u662f\u56e0\u4e3a\u4f60 DLL \u91cc\u9762\u5bfc\u51fa\u51fd\u6570\u7684\u58f0\u660e\u6709\u95ee\u9898\uff0c\u6216\u8005\u5fd8\u4e86\u52a0 lib \u6587\u4ef6\u3002<br \/>\u4e0d\u8fc7\u4f60\u8fd9\u4e2a\u662f\u56e0\u4e3a printf \u7cfb\u5217\u51fd\u6570\u5168\u90e8\u6539\u6210 inline \u7684\u4e86\uff0c\u4f60\u5f97\u5728\u4f60\u7684\u4ee3\u7801\u91cc\u5f15\u7528 crt \u7684 header\uff0c\u6216\u8005\u6dfb\u52a0\u4e0a\u90a3\u4e2a legacy stdio \u7684 lib                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4257192\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codehz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u8c03\u7528\u7ea6\u5b9a\u7684\u95ee\u9898\uff0c\u5177\u4f53\u5185\u5bb9\u81ea\u5df1\u641c\u7d22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4257193\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : si <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u641c\u7d22\uff1a\u51fd\u6570\u540d\u4fee\u9970\uff0cVC \u7684\u7f16\u8bd1\u5668\u4f1a\u5728 C \u7684\u51fd\u6570\u540d\u524d\u9762\u52a0\u4e2a\u4e0b\u5212\u7ebf\uff0cstdcall \u7684\u8fd8\u5728\u540e\u9762\u52a0\u4e0a @\u53c2\u6570\u5b57\u8282\u6570\u3002C++\u7684\u8fd8\u540e\u9762\u52a0\u4e0a\u53c2\u6570\u7c7b\u578b\uff0c\u7528\u4e0d\u540c\u7684\u5b57\u6bcd\u4ee3\u8868\u4e0d\u540c\u7684\u7c7b\u578b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48 MSVC \u7684 LNK201&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/199667"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=199667"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/199667\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=199667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=199667"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=199667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}