<?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: Compiling HP-UX 11.23 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756449#M101728</link>
    <description>You didn't mention how the link step failed.&lt;BR /&gt;&lt;BR /&gt;Generally you must NOT use ld to link aC++ applications.  Use aCC instead.&lt;BR /&gt;&lt;BR /&gt;You need to change your LDFLAGS to remove the default  libs and then you need to add -AA.  And change ld specific options to the -Wl form: -Wl,+pd,16M.</description>
    <pubDate>Wed, 22 Mar 2006 04:54:11 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2006-03-22T04:54:11Z</dc:date>
    <item>
      <title>Compiling HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756448#M101727</link>
      <description>I can't link archive or shared libraries that include STL (standard template library) code.&lt;BR /&gt;If I compile and link the code without making use of an archive library step, it works. &lt;BR /&gt;As soon as I include the STL code within the archive or shared library, the link step fails.&lt;BR /&gt;&lt;BR /&gt;Here is my .mk file:&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------------------------&lt;BR /&gt;# HP-UX C++ compiler&lt;BR /&gt;#--------------------------------------------------------------&lt;BR /&gt;COMPILE=/opt/aCC/bin/aCC&lt;BR /&gt;CCFLAGS= -AA -c -v +p +DA2.0 +DS2.0 \&lt;BR /&gt;-D_HPUX_SOURCE \&lt;BR /&gt;-D_POSIX_C_SOURCE=199506L \&lt;BR /&gt;-DRWSTD_MULTI_THREAD \&lt;BR /&gt;-DRW_MULTI_THREAD \&lt;BR /&gt;-D_REENTRANT \&lt;BR /&gt;-D_THREAD_SAFE&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------------------------&lt;BR /&gt;# HP-UX C++ linker&lt;BR /&gt;#--------------------------------------------------------------&lt;BR /&gt;LINK=ld&lt;BR /&gt;LDFLAGS= \&lt;BR /&gt;/opt/langtools/lib/crt0.o \&lt;BR /&gt;/opt/aCC/lib/cpprt0.o \&lt;BR /&gt;-L /opt/aCC/lib \&lt;BR /&gt;-v \&lt;BR /&gt;+vallcompatwarnings \&lt;BR /&gt;+pd 16M \&lt;BR /&gt;-lstd_v2 \&lt;BR /&gt;-lCsup_v2 \&lt;BR /&gt;-lm     \&lt;BR /&gt;-L$(ORACLE_HOME)/lib32 \&lt;BR /&gt;-lclntsh&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------------------------&lt;BR /&gt;# excutable&lt;BR /&gt;#--------------------------------------------------------------&lt;BR /&gt;exe: main.o failing.a&lt;BR /&gt;         $(LINK) $(LDFLAGS) main.o -o tester.exe&lt;BR /&gt;&lt;BR /&gt;main.o : main.cpp&lt;BR /&gt;        $(COMPILE) $(CCFLAGS) main.cpp&lt;BR /&gt;&lt;BR /&gt;failing.a : failing.cpp&lt;BR /&gt;        $(COMPILE) $(CCFLAGS) failing.cpp&lt;BR /&gt;        ar r failing.a failing.o&lt;BR /&gt;#--------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas please?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Wed, 22 Mar 2006 04:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756448#M101727</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2006-03-22T04:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756449#M101728</link>
      <description>You didn't mention how the link step failed.&lt;BR /&gt;&lt;BR /&gt;Generally you must NOT use ld to link aC++ applications.  Use aCC instead.&lt;BR /&gt;&lt;BR /&gt;You need to change your LDFLAGS to remove the default  libs and then you need to add -AA.  And change ld specific options to the -Wl form: -Wl,+pd,16M.</description>
      <pubDate>Wed, 22 Mar 2006 04:54:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756449#M101728</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-22T04:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756450#M101729</link>
      <description>This is the error I get:&lt;BR /&gt;&lt;BR /&gt;ld: Unsatisfied symbols:&lt;BR /&gt;   fxFailingToLink__Fv (first referenced in main.o) (code)&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Wed, 22 Mar 2006 05:14:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756450#M101729</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2006-03-22T05:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756451#M101730</link>
      <description>Where have you defined fxFailingToLink(void), in failing.cpp?&lt;BR /&gt;&lt;BR /&gt;I don't see failing.a added to your link line, after main.o</description>
      <pubDate>Wed, 22 Mar 2006 19:19:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756451#M101730</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-22T19:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756452#M101731</link>
      <description>Hi Dennis&lt;BR /&gt;&lt;BR /&gt;I think the problem is with the creation of the archive file &lt;BR /&gt;"ar r failing.a failing.o"&lt;BR /&gt;&lt;BR /&gt;If it is compiled with just the objects (failing.o) all is fine, but as soon as an archive is created, it is as if the archive file (failing.a) is not picked up?&lt;BR /&gt;&lt;BR /&gt;Carlo&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2006 00:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756452#M101731</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2006-03-23T00:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756453#M101732</link>
      <description>Dennis&lt;BR /&gt;&lt;BR /&gt;Your comment got me on the right track...hence the points, thanks.&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Thu, 23 Mar 2006 00:59:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756453#M101732</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2006-03-23T00:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756454#M101733</link>
      <description>PS: The problem was the link command:&lt;BR /&gt;$(LINK) $(LDFLAGS) main.o -o tester.exe&lt;BR /&gt;did not include the .a as follows:&lt;BR /&gt;$(LINK) $(LDFLAGS) main.o failing.a -o tester.exe&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Thu, 23 Mar 2006 01:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-hp-ux-11-23/m-p/3756454#M101733</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2006-03-23T01:01:36Z</dc:date>
    </item>
  </channel>
</rss>

