<?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 Re: Problem in linking a shared Library in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-in-linking-a-shared-library/m-p/4109374#M92629</link>
    <description>Try this:&lt;BR /&gt;aCC -o HelloWorld HelloWorld.cpp -L/opt/hpws -lzlib&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 29 Nov 2007 11:29:52 GMT</pubDate>
    <dc:creator>Srimalik</dc:creator>
    <dc:date>2007-11-29T11:29:52Z</dc:date>
    <item>
      <title>Problem in linking a shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-linking-a-shared-library/m-p/4109373#M92628</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;  I am trying to link a shared library libzlib.sl present in /opt/hpws/&lt;BR /&gt;&lt;BR /&gt;  So i gave following command&lt;BR /&gt;aCC -o -L/opt/hpws HelloWorld HelloWorld.cpp -lzlib&lt;BR /&gt;&lt;BR /&gt;  It says &lt;BR /&gt;    /usr/ccs/bin/ld cant find library zlib&lt;BR /&gt;&lt;BR /&gt;    I also tried copying the lib file into my current directory and giving following command&lt;BR /&gt;aCC -o -L. HelloWorld HelloWorld.cpp -lzlib&lt;BR /&gt;&lt;BR /&gt;   But same error continues.&lt;BR /&gt;&lt;BR /&gt;  Can any one help me out please&lt;BR /&gt;&lt;BR /&gt;   I have set SHLIB_PATH and also CCLIBDIR Environment variables Path to the zlib path  but still error continues. &lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2007 01:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-linking-a-shared-library/m-p/4109373#M92628</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-11-29T01:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in linking a shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-linking-a-shared-library/m-p/4109374#M92629</link>
      <description>Try this:&lt;BR /&gt;aCC -o HelloWorld HelloWorld.cpp -L/opt/hpws -lzlib&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2007 11:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-linking-a-shared-library/m-p/4109374#M92629</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-11-29T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in linking a shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-linking-a-shared-library/m-p/4109375#M92630</link>
      <description>&amp;gt;I am trying to link a shared library&lt;BR /&gt;aCC -o -L/opt/hpws HelloWorld HelloWorld.cpp -lzlib&lt;BR /&gt;&lt;BR /&gt;Your problem is that -o takes a file and eats up the -L.  Use:&lt;BR /&gt;-L/opt/hpws -o HelloWorld ...&lt;BR /&gt;&lt;BR /&gt;Or better yet as Srikrishan said, move the -L to the end.</description>
      <pubDate>Thu, 29 Nov 2007 23:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-linking-a-shared-library/m-p/4109375#M92630</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-29T23:09:23Z</dc:date>
    </item>
  </channel>
</rss>

