<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GCC doesn't link libraries properly in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910382#M702771</link>
    <description>Hi!&lt;BR /&gt;I am compiling a program with gcc, but although I have a linker opition -lrrd, which should link to a librrd.so library, it doesn't. If I use chatr on the compiled file, I see:&lt;BR /&gt;&lt;BR /&gt;64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first &lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  -lrrd&lt;BR /&gt;         shared library list:&lt;BR /&gt;             libm.so.1&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;&lt;BR /&gt;This library is not in the shared list! &lt;BR /&gt;Does anybody know why?&lt;BR /&gt;&lt;BR /&gt;P.S. What does the +b option of gcc mean?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
    <pubDate>Mon, 04 Jul 2005 04:07:45 GMT</pubDate>
    <dc:creator>Kalin Evtimov</dc:creator>
    <dc:date>2005-07-04T04:07:45Z</dc:date>
    <item>
      <title>GCC doesn't link libraries properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910382#M702771</link>
      <description>Hi!&lt;BR /&gt;I am compiling a program with gcc, but although I have a linker opition -lrrd, which should link to a librrd.so library, it doesn't. If I use chatr on the compiled file, I see:&lt;BR /&gt;&lt;BR /&gt;64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first &lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  -lrrd&lt;BR /&gt;         shared library list:&lt;BR /&gt;             libm.so.1&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;&lt;BR /&gt;This library is not in the shared list! &lt;BR /&gt;Does anybody know why?&lt;BR /&gt;&lt;BR /&gt;P.S. What does the +b option of gcc mean?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Mon, 04 Jul 2005 04:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910382#M702771</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2005-07-04T04:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: GCC doesn't link libraries properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910383#M702772</link>
      <description>It is not necessary that your application is actually dependent on libraries that you link with. You can specify any number of libraries at the link time, but linker will keep only those names which resolves any external refernces in application. &lt;BR /&gt;&lt;BR /&gt;In your case, it seems that your application is not calling any procedure/function defined in librrd.so. Hence it is not shown in the chatr output.&lt;BR /&gt;&lt;BR /&gt;-Amit</description>
      <pubDate>Mon, 04 Jul 2005 04:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910383#M702772</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-07-04T04:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: GCC doesn't link libraries properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910384#M702773</link>
      <description>But this librray is actually called when the application is run, and I get error:&lt;BR /&gt;&lt;BR /&gt;Unsatisfied code symbol 'rrd_clear_error'&lt;BR /&gt;&lt;BR /&gt;and this symbol is exactly contained in librrd.so&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jul 2005 04:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910384#M702773</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2005-07-04T04:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: GCC doesn't link libraries properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910385#M702774</link>
      <description>I got it! It was actually the option +b, which should look like +b(library/path/), but within my makefile it had not parameters, so I added them and it worked so far..&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jul 2005 05:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-doesn-t-link-libraries-properly/m-p/4910385#M702774</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2005-07-04T05:34:29Z</dc:date>
    </item>
  </channel>
</rss>

