{"id":5142,"date":"2014-03-30T19:12:20","date_gmt":"2014-03-30T19:12:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/get-rid-of-gcc-usr-bin-ld-warning-lib-not-found-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:12:20","modified_gmt":"2014-03-30T19:12:20","slug":"get-rid-of-gcc-usr-bin-ld-warning-lib-not-found-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/get-rid-of-gcc-usr-bin-ld-warning-lib-not-found-collection-of-common-programming-errors\/","title":{"rendered":"Get rid of &ldquo;gcc &#8211; \/usr\/bin\/ld: warning lib not found&rdquo;-Collection of common programming errors"},"content":{"rendered":"<p>I have the following warning during link:<\/p>\n<pre><code>\/usr\/bin\/ld: warning: libxxx.so.6, needed by \/a\/b\/c\/libyyy.so, not found (try using -rpath or -rpath-link)\n<\/code><\/pre>\n<p>Setting environment variable LD_LIBRARY_PATH=path_to_libxxx.so.6 silence the warning (adding -Lpath_to_libxxx.so.6 doesn&#8217;t help).<\/p>\n<p>I have a separate compilation server, where the resulting binary is only compile. The binary is executed on other server and there the libxxx.so.6 is seen by the binary (checked with <code>ldd executable<\/code>).<\/p>\n<p>Is there&#8217;re other way to get rid of the warning at compilation time (I have it several times and it&#8217;s very annoying)?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have the following warning during link: \/usr\/bin\/ld: warning: libxxx.so.6, needed by \/a\/b\/c\/libyyy.so, not found (try using -rpath or -rpath-link) Setting environment variable LD_LIBRARY_PATH=path_to_libxxx.so.6 silence the warning (adding -Lpath_to_libxxx.so.6 doesn&#8217;t help). I have a separate compilation server, where the resulting binary is only compile. The binary is executed on other server and there the libxxx.so.6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5142","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5142"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5142\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}