{"id":914,"date":"2014-09-22T09:50:30","date_gmt":"2014-09-22T01:50:30","guid":{"rendered":"http:\/\/www.hawkwithwind.net\/blog\/?p=914"},"modified":"2014-09-22T09:51:20","modified_gmt":"2014-09-22T01:51:20","slug":"dss-%e7%bc%96%e8%af%91%e9%97%ae%e9%a2%98%e5%b0%8f%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.hawkwithwind.net\/blog\/2014\/09\/22\/dss-%e7%bc%96%e8%af%91%e9%97%ae%e9%a2%98%e5%b0%8f%e7%bb%93\/","title":{"rendered":"dss \u7f16\u8bd1\u95ee\u9898\u5c0f\u7ed3"},"content":{"rendered":"<p>\u4e3b\u8981\u9047\u5230\u4e24\u4e2a\u95ee\u9898\uff0c\u6bd4\u8f83\u6709\u901a\u7528\u6027\uff0c\u8bb0\u5f55\u4e00\u4e0b\uff1a<br \/>\n1. <code>-lpthread<\/code> \u4fee\u6539\u4e3a <code>-pthread<\/code><br \/>\n2. <code>-ldl<\/code> \u4fee\u6539\u4e3a <code>-Wl,--no-as-needed -ldl<\/code><\/p>\n<p>\u5728linux\u7f16\u8bd1\u9047\u5230<\/p>\n<p><code><\/p>\n<pre>\r\nundefined reference to pthread_mutexattr_init\r\nundefined reference to dlopen\r\n<\/pre>\n<p><\/code><\/p>\n<p>\u53ef\u80fd\u8ddf\u8fd9\u4e24\u4e2a\u95ee\u9898\u76f8\u5173\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u8981\u9047\u5230\u4e24\u4e2a\u95ee\u9898\uff0c\u6bd4\u8f83\u6709\u901a\u7528\u6027\uff0c\u8bb0\u5f55\u4e00\u4e0b\uff1a 1. -lpthread \u4fee\u6539\u4e3a -pthread 2. -ldl \u4fee\u6539\u4e3a -Wl,&#8211;no-as-needed -ldl \u5728linux\u7f16\u8bd1\u9047\u5230 undefined reference to pthread_mutexattr_init undefined reference to dlopen \u53ef\u80fd\u8ddf\u8fd9\u4e24\u4e2a\u95ee\u9898\u76f8\u5173\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[76,49],"class_list":["post-914","post","type-post","status-publish","format-standard","hentry","category-post","tag-gcc","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/comments?post=914"}],"version-history":[{"count":2,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/914\/revisions"}],"predecessor-version":[{"id":916,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/914\/revisions\/916"}],"wp:attachment":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/media?parent=914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/categories?post=914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/tags?post=914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}