{"id":1950,"date":"2022-02-06T01:57:20","date_gmt":"2022-02-05T17:57:20","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1950"},"modified":"2022-02-06T02:08:40","modified_gmt":"2022-02-05T18:08:40","slug":"%e9%98%bf%e9%87%8c%e4%ba%91%e5%ad%98%e5%82%a8-oss-%e7%9a%84-c%e7%9b%b8%e5%85%b3%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1950","title":{"rendered":"\u963f\u91cc\u4e91\u5b58\u50a8 oss \u7684 c++\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n

\u8fd9\u4e24\u5929\u5728\u6363\u9f13\u6d4b\u8bd5\u963f\u91cc\u4e91\u7684\u5bf9\u8c61\u5b58\u50a8\uff0c\u963f\u91cc\u4e91\u79f0\u4e3a \u963f\u91cc\u4e91\u5bf9\u8c61\u5b58\u50a8OSS\uff08Object Storage Service\uff09\u3002<\/p>\n\n\n\n

\u9996\u5148\uff0c\u76f8\u5173sdk\u662f\u653e\u5728 github\u7684\u3002so\uff0c\u9700\u8981\u79d1\u5b66\u4e0a\u7f51\u3002\u5f88\u662f\u4e0d\u65b9\u4fbf\u3002<\/p>\n\n\n\n

\u518d\u8005\u5c31\u662f\u9047\u5230\u4e86\u63d0\u4f9b\u7684\u6559\u7a0b\u9ed8\u8ba4\u7f16\u8bd1\u51fa\u6765\u7684lib\u662f64\u4f4d\u7684\u3002\u6211\u7684\u9879\u76ee\u5747\u662f32\u4f4d\u4e0b\u5f00\u53d1\u7684\u3002\u5982\u679c\u8bbe\u7f6e\u4e3awin32\u7684\uff0cvs\u7f16\u8bd1\u65f6\u4f1a\u6709\u5982\u4e0b\u7684\u63d0\u793a\uff1a<\/p>\n\n\n\n

\u9519\u8bef LNK1112 \u6a21\u5757\u8ba1\u7b97\u673a\u7c7b\u578b\u201cx86\u201d\u4e0e\u76ee\u6807\u8ba1\u7b97\u673a\u7c7b\u578b\u201cx64\u201d\u51b2\u7a81 cpp-sdk F:\\\u8fc5\u96f7\u4e0b\u8f7d\\aliyun-oss-cpp-sdk-1.9.0\\build\\sdk\\Debug\\OssClient.obj 1<\/code><\/pre>\n\n\n\n

\u89e3\u51b3\u529e\u6cd5\u662f\u4fee\u6539\u9879\u76ee\u7684\u5c5e\u6027\u4e2d\u7684 \u6587\u6863\u7ba1\u7406\u7a0b\u5e8f\u7684-\u300b\u6240\u6709\u9009\u9879-\u300b\u9644\u52a0\u9009\u9879\uff0c\/machine:x64 \u6539\u4e3a \/machine:x86<\/p>\n\n\n\n

\u4f46\u597d\u50cf\u5404\u4e2avs\u7248\u672c\u7684\u8fd9\u4e2a\u5c5e\u6027\u7684\u4f4d\u7f6e\u6709\u6240\u4e0d\u4e00\u6837\uff0c\u6ce8\u610f\u533a\u522b\u5bf9\u5f85\u3002<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

\u8fd8\u6709\u5982\u4e0b\u95ee\u9898\uff1a<\/p>\n\n\n\n

\u963f\u91cc\u4e91oss\u4e5f\u96c6\u6210\u4e86\u76f8\u5173\u7684\u7b2c\u4e09\u65b9\u5e93\uff0clibcurl,ssleasy\u7b49\uff0c\u8fd9\u548c\u6211\u5f53\u524d\u9879\u76ee\u7684\u4e0d\u517c\u5bb9\u3002\u751f\u6210\u7684exe\u7a0b\u5e8f\u4f1a\u6709\u5982\u4e0b\u63d0\u793a\uff1a<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

\u7136\u540e\u6211\u5c31\u7528\u4ed6\u63d0\u4f9b\u7684dll\u76f4\u63a5\u66ff\u6362\u4e86\u6211\u7684\u539f\u5148\u7684\u3002\u7b80\u5355\u770b\u662f\u6ca1\u95ee\u9898\uff0c\u53ef\u4ee5\u6b63\u5e38\u6267\u884c\uff08\u4f46\u771f\u4e0d\u786e\u4fdd\u5c31\u6ca1\u95ee\u9898\u5440\uff0c\u5185\u5fc3\u8fd8\u662f\u6bd4\u8f83\u62c5\u5fc3\u7684\uff09\u3002\u6240\u4ee5\u8fd8\u662f\u9700\u8981\u4ed4\u7ec6\u6d4b\u8bd5\u3002<\/p>\n\n\n\n

\u8fd8\u6709\u5c31\u662f\uff0c\u597d\u50cf\u4ed6\u7684\u7b2c\u4e09\u65b9\u5e93\u7684dll\u53ea\u6709release\u7248\u672c\u7684\uff0c\u6ca1\u6709debug\u7684\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u6211\u7684\u7a0b\u5e8f \u5728debug\u6a21\u5f0f\u4e0b\u5c31\u4e0d\u80fd\u6b63\u5e38\u8fd0\u884c\u4e86\uff0c\u53ea\u80fd\u5728release\u6a21\u5f0f\u4e0b\u5f00\u53d1\u4e86\u3002\u3002\u3002\u8fd9\uff0c\u4e5f\u662f\u4e2a\u95ee\u9898\u5440\u3002\u3002\u3002\u4e0d\u77e5\u9053\u600e\u4e48\u6574\u3002\u3002\u3002<\/p>\n\n\n\n

\u6700\u5f00\u59cb\u662f\u6253\u7b97\u6363\u9f13\u817e\u8baf\u4e91\u5bf9\u8c61\u5b58\u50a8\u7684\uff0c\u611f\u89c9\u817e\u8baf\u7684\u7b2c\u4e09\u65b9\u5e93 \u4e5f\u4e0d\u597d\u5f04\u3002poco\u3002\u5c31\u653e\u5f03\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8fd9\u4e24\u5929\u5728\u6363\u9f13\u6d4b\u8bd5\u963f\u91cc\u4e91\u7684\u5bf9\u8c61\u5b58\u50a8\uff0c\u963f\u91cc\u4e91\u79f0\u4e3a \u963f\u91cc\u4e91\u5bf9\u8c61\u5b58\u50a8OSS\uff08Object Storage Service\uff09\u3002 \u9996\u5148\uff0c\u76f8\u5173sdk\u662f\u653e\u5728 github\u7684\u3002so\uff0c\u9700\u8981\u79d1\u5b66\u4e0a\u7f51\u3002\u5f88\u662f\u4e0d\u65b9\u4fbf\u3002 \u518d\u8005\u5c31\u662f\u9047\u5230\u4e86\u63d0\u4f9b\u7684\u6559\u7a0b\u9ed8\u8ba4\u7f16\u8bd1\u51fa\u6765\u7684lib\u662f64\u4f4d\u7684\u3002\u6211\u7684\u9879\u76ee\u5747\u662f32\u4f4d\u4e0b\u5f00\u53d1\u7684\u3002\u5982\u679c\u8bbe\u7f6e\u4e3awin32\u7684\uff0cvs\u7f16\u8bd1\u65f6\u4f1a\u6709\u5982\u4e0b\u7684\u63d0\u793a\uff1a \u89e3\u51b3\u529e\u6cd5\u662f\u4fee\u6539\u9879\u76ee\u7684\u5c5e\u6027\u4e2d\u7684 \u6587\u6863\u7ba1\u7406\u7a0b\u5e8f\u7684-\u300b\u6240\u6709\u9009\u9879-\u300b\u9644\u52a0\u9009\u9879\uff0c\/machine:x64 \u6539\u4e3a \/machine:x86 \u4f46\u597d\u50cf\u5404\u4e2avs\u7248\u672c\u7684\u8fd9\u4e2a\u5c5e\u6027\u7684\u4f4d\u7f6e\u6709\u6240\u4e0d\u4e00\u6837\uff0c\u6ce8\u610f\u533a\u522b\u5bf9\u5f85\u3002 \u8fd8\u6709\u5982\u4e0b\u95ee\u9898\uff1a \u963f\u91cc\u4e91oss\u4e5f\u96c6\u6210\u4e86\u76f8\u5173\u7684\u7b2c\u4e09\u65b9\u5e93\uff0clibcurl,ssleasy<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,219,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1950"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1950"}],"version-history":[{"count":5,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1950\/revisions"}],"predecessor-version":[{"id":1958,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1950\/revisions\/1958"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1950"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}