<?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 Cannot execute a binary produced by g++ across hpux systems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-execute-a-binary-produced-by-g-across-hpux-systems/m-p/2671197#M723032</link>
    <description>Hello,&lt;BR /&gt;   I install binutil and gcc in a HPUX 10.20 system.  I finally got that system to compile and run a simple program using iostream and other STL library like list and map.  But I tried to run the executable on another HPUX system that does not have the g++ package installed, I have the following error:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux&lt;BR /&gt;10.20/3.0.1/../../../libstdc++.sl.3&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;Does this mean I have to installed the gcc package in every hpux system that I need to run that binary?  Is there a way to include the library into the binary instead of  needing the linker to find that shared library?&lt;BR /&gt;Thanks for your help.</description>
    <pubDate>Mon, 25 Feb 2002 17:52:04 GMT</pubDate>
    <dc:creator>Fay_1</dc:creator>
    <dc:date>2002-02-25T17:52:04Z</dc:date>
    <item>
      <title>Cannot execute a binary produced by g++ across hpux systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-execute-a-binary-produced-by-g-across-hpux-systems/m-p/2671197#M723032</link>
      <description>Hello,&lt;BR /&gt;   I install binutil and gcc in a HPUX 10.20 system.  I finally got that system to compile and run a simple program using iostream and other STL library like list and map.  But I tried to run the executable on another HPUX system that does not have the g++ package installed, I have the following error:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux&lt;BR /&gt;10.20/3.0.1/../../../libstdc++.sl.3&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;Does this mean I have to installed the gcc package in every hpux system that I need to run that binary?  Is there a way to include the library into the binary instead of  needing the linker to find that shared library?&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Mon, 25 Feb 2002 17:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-execute-a-binary-produced-by-g-across-hpux-systems/m-p/2671197#M723032</guid>
      <dc:creator>Fay_1</dc:creator>
      <dc:date>2002-02-25T17:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot execute a binary produced by g++ across hpux systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-execute-a-binary-produced-by-g-across-hpux-systems/m-p/2671198#M723033</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you want to avoid this problem, you need to statically link your executables so that you link using the '.a' libraries rather than the '.sl' libraries. If you statically link, the executables will be bigger but everything they need to run will be self-contained. Your linker documentation should direct you to the right options. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Feb 2002 18:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-execute-a-binary-produced-by-g-across-hpux-systems/m-p/2671198#M723033</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-25T18:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot execute a binary produced by g++ across hpux systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-execute-a-binary-produced-by-g-across-hpux-systems/m-p/2671199#M723034</link>
      <description>Try compiling / linking with the -static flag, this will prevent shared libraries from being used.&lt;BR /&gt;&lt;BR /&gt;If that doesn't work, try -Wl,-a,archive &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 25 Feb 2002 18:54:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-execute-a-binary-produced-by-g-across-hpux-systems/m-p/2671199#M723034</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-02-25T18:54:25Z</dc:date>
    </item>
  </channel>
</rss>

