<?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: Issues with shared libraries and static memebers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/issues-with-shared-libraries-and-static-memebers/m-p/2886536#M719508</link>
    <description>I had a similar problem. I traced it back to the following cause: When loading a shared lib written in C++ dynamically from a C program, the global static members do not get initialized. The remedies I found are: Either compile the C program with the C++ compiler, call the initilization code explicitly, or not to use global static variables in your library (if you own the code). &lt;BR /&gt;&lt;BR /&gt;You are probably referring to one of these remedies? &lt;BR /&gt;&lt;BR /&gt;I don't think there is a OS or compiler patch for this. However maybe there is one available in the meantime.</description>
    <pubDate>Thu, 23 Jan 2003 11:27:35 GMT</pubDate>
    <dc:creator>Martin Schneider_2</dc:creator>
    <dc:date>2003-01-23T11:27:35Z</dc:date>
    <item>
      <title>Issues with shared libraries and static memebers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/issues-with-shared-libraries-and-static-memebers/m-p/2886535#M719507</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have an issue with loading librarys on HPUX 11.00 and 11i, with gcc 3.2 using C++&lt;BR /&gt;&lt;BR /&gt;I had an problem with the dlopen call not correctly setting up the static classes correctly. Therefore I tried&lt;BR /&gt;&lt;BR /&gt;Load the Library&lt;BR /&gt;Get the address of _GLOBAL__DI&lt;BR /&gt;run that function&lt;BR /&gt;&lt;BR /&gt;This does work however I have a problem with shutdown causing a seg 11 fault. The only information I can find on this issue is around 3 years old. Please could someone confirm/deny if this approach is still required or has been fixed in this version of hpux and my makefiles are incorrect&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jan 2003 12:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/issues-with-shared-libraries-and-static-memebers/m-p/2886535#M719507</guid>
      <dc:creator>Stephen Hoare</dc:creator>
      <dc:date>2003-01-21T12:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with shared libraries and static memebers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/issues-with-shared-libraries-and-static-memebers/m-p/2886536#M719508</link>
      <description>I had a similar problem. I traced it back to the following cause: When loading a shared lib written in C++ dynamically from a C program, the global static members do not get initialized. The remedies I found are: Either compile the C program with the C++ compiler, call the initilization code explicitly, or not to use global static variables in your library (if you own the code). &lt;BR /&gt;&lt;BR /&gt;You are probably referring to one of these remedies? &lt;BR /&gt;&lt;BR /&gt;I don't think there is a OS or compiler patch for this. However maybe there is one available in the meantime.</description>
      <pubDate>Thu, 23 Jan 2003 11:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/issues-with-shared-libraries-and-static-memebers/m-p/2886536#M719508</guid>
      <dc:creator>Martin Schneider_2</dc:creator>
      <dc:date>2003-01-23T11:27:35Z</dc:date>
    </item>
  </channel>
</rss>

