<?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: JNI calling C shared lib, calling C shared lib in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029230#M718940</link>
    <description>Can you please give an example of how to properly compile and link using gcc?  I am especially interested in the case where one shared library is linked to another.  Thanks,&lt;BR /&gt;&lt;BR /&gt;TJ</description>
    <pubDate>Fri, 25 Jul 2003 18:28:39 GMT</pubDate>
    <dc:creator>asdf_44</dc:creator>
    <dc:date>2003-07-25T18:28:39Z</dc:date>
    <item>
      <title>JNI calling C shared lib, calling C shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029227#M718937</link>
      <description>I have a java application running on HPUX 11.0 which calls a C shared library (call it gridAPI.sl).  This gridAPI.sl then makes calls to a PostgreSQL shared library to access data. The java finds the gripAPI.sl but at runtime I get an Unsatisfied Symbol error on EPCGconnect call in the second (PostgeSQL) shared library.  Why can't gridAPI.sl find the PostgeSQL shared library?  The chain works fine when the initiating program is 'C'.</description>
      <pubDate>Mon, 21 Jul 2003 19:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029227#M718937</guid>
      <dc:creator>Kevin Heffernan</dc:creator>
      <dc:date>2003-07-21T19:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: JNI calling C shared lib, calling C shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029228#M718938</link>
      <description>I dont know what compiler you are using but we had much better success using the gcc compiler rather than aCC.&lt;BR /&gt;&lt;BR /&gt;Just for double checking, did you make sure the PostgwSQL library is in your LD_LIBRARY_PATH?&lt;BR /&gt;&lt;BR /&gt;If your using aCC, I think you also need to use the -L &lt;DIRECTORY&gt; and +Wl,-b &lt;DIRECTORY&gt; options..&lt;BR /&gt;&lt;BR /&gt;Sorry im just thinking off the top of my head.&lt;/DIRECTORY&gt;&lt;/DIRECTORY&gt;</description>
      <pubDate>Wed, 23 Jul 2003 13:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029228#M718938</guid>
      <dc:creator>David Kilcy</dc:creator>
      <dc:date>2003-07-23T13:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: JNI calling C shared lib, calling C shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029229#M718939</link>
      <description>Sorry, for HPUX the path is SHLIB_PATH (Solaris uses LD_LIBRARY_PATH)&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jul 2003 13:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029229#M718939</guid>
      <dc:creator>David Kilcy</dc:creator>
      <dc:date>2003-07-23T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: JNI calling C shared lib, calling C shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029230#M718940</link>
      <description>Can you please give an example of how to properly compile and link using gcc?  I am especially interested in the case where one shared library is linked to another.  Thanks,&lt;BR /&gt;&lt;BR /&gt;TJ</description>
      <pubDate>Fri, 25 Jul 2003 18:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029230#M718940</guid>
      <dc:creator>asdf_44</dc:creator>
      <dc:date>2003-07-25T18:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: JNI calling C shared lib, calling C shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029231#M718941</link>
      <description>SHLIB_PATH was all set.  Had to use aCC by direction (this is a small part of a large project).  The compiler/linker options were the key.  Thanks.</description>
      <pubDate>Sat, 26 Jul 2003 18:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jni-calling-c-shared-lib-calling-c-shared-lib/m-p/3029231#M718941</guid>
      <dc:creator>Kevin Heffernan</dc:creator>
      <dc:date>2003-07-26T18:38:30Z</dc:date>
    </item>
  </channel>
</rss>

