{"id":262,"date":"2023-08-18T18:04:54","date_gmt":"2023-08-18T10:04:54","guid":{"rendered":"http:\/\/blog.xjfvps.top\/index.php\/2023\/08\/18\/ld%e7%bc%96%e8%af%91%e9%93%be%e6%8e%a5%e6%97%b6%e9%bb%98%e8%ae%a4%e6%90%9c%e7%b4%a2%e8%b7%af%e5%be%84\/"},"modified":"2023-08-18T18:04:54","modified_gmt":"2023-08-18T10:04:54","slug":"ld%e7%bc%96%e8%af%91%e9%93%be%e6%8e%a5%e6%97%b6%e9%bb%98%e8%ae%a4%e6%90%9c%e7%b4%a2%e8%b7%af%e5%be%84","status":"publish","type":"post","link":"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/ld%e7%bc%96%e8%af%91%e9%93%be%e6%8e%a5%e6%97%b6%e9%bb%98%e8%ae%a4%e6%90%9c%e7%b4%a2%e8%b7%af%e5%be%84\/","title":{"rendered":"ld\u7f16\u8bd1\u94fe\u63a5\u65f6\u9ed8\u8ba4\u641c\u7d22\u8def\u5f84"},"content":{"rendered":"<p>\u6211\u603b\u4ee5\u4e3aLD_LIBRARY_PATH\u662fld\u7684\u7f16\u8bd1\u94fe\u63a5\u65f6\u7684\u9ed8\u8ba4\u641c\u7d22\u8def\u5f84\uff0c\u5176\u5b9e\u4e0d\u662f\uff0c\u53ea\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u641c\u7d22\u5e93\u8def\u5f84\u3002<\/p>\n<p>\u4e8e\u662f\u6709\u4e86\u4ee5\u4e0b\u7684\u95ee\u9898<\/p>\n<p>\u660e\u660e\u5728LD_LIBRARY_PATH\u914d\u7f6e\u4e86boost_thread lib\u7684\u8def\u5f84\uff0cld\u5374\u62a5\u627e\u4e0d\u5230\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>g++ thread.cpp -lboost_thread<br \/>\/usr\/bin\/ld: cannot find -lboost_thread<br \/>collect2: \u9519\u8bef\uff1ald \u8fd4\u56de 1<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u5bf9\u8fd9\u7f16\u8bd1\u94fe\u63a5\uff0c\u4e00\u5b9a\u8981\u7528-L\u6307\u5b9a\u8def\u5f84\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u603b\u4ee5\u4e3aLD_LIBRARY_PATH\u662fld\u7684\u7f16\u8bd1\u94fe\u63a5\u65f6\u7684\u9ed8\u8ba4\u641c\u7d22\u8def\u5f84\uff0c\u5176\u5b9e\u4e0d\u662f &hellip; <a href=\"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/ld%e7%bc%96%e8%af%91%e9%93%be%e6%8e%a5%e6%97%b6%e9%bb%98%e8%ae%a4%e6%90%9c%e7%b4%a2%e8%b7%af%e5%be%84\/\">\u7ee7\u7eed\u9605\u8bfb <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":[1],"tags":[],"class_list":["post-262","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":0,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}