<?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 The link error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705913#M903063</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to compile some code which work correctly on Linux but not go on HP_UX now.&lt;BR /&gt;The error message lists below:&lt;BR /&gt;&lt;BR /&gt;        ld -lc  -o ../lib/libcom.so cLog.o&lt;BR /&gt;ld: (Warning) At least one PA 2.0 object file (cLog.o) was detected. The linked&lt;BR /&gt;output may not run on a PA 1.x system.&lt;BR /&gt;ld: Unsatisfied symbols:&lt;BR /&gt;   __nw__FUi (code)&lt;BR /&gt;   __dl__FPv (code)&lt;BR /&gt;   __curStaticObject (data)&lt;BR /&gt;ld: Unsatisfied symbols:&lt;BR /&gt;   $global$ (data)&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;&lt;BR /&gt;It looks like some c++ libraries are missed,right?&lt;BR /&gt;Could somebody give me some suggestion?&lt;BR /&gt;Thanks.</description>
    <pubDate>Thu, 18 Apr 2002 06:43:17 GMT</pubDate>
    <dc:creator>Jack_27</dc:creator>
    <dc:date>2002-04-18T06:43:17Z</dc:date>
    <item>
      <title>The link error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705913#M903063</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to compile some code which work correctly on Linux but not go on HP_UX now.&lt;BR /&gt;The error message lists below:&lt;BR /&gt;&lt;BR /&gt;        ld -lc  -o ../lib/libcom.so cLog.o&lt;BR /&gt;ld: (Warning) At least one PA 2.0 object file (cLog.o) was detected. The linked&lt;BR /&gt;output may not run on a PA 1.x system.&lt;BR /&gt;ld: Unsatisfied symbols:&lt;BR /&gt;   __nw__FUi (code)&lt;BR /&gt;   __dl__FPv (code)&lt;BR /&gt;   __curStaticObject (data)&lt;BR /&gt;ld: Unsatisfied symbols:&lt;BR /&gt;   $global$ (data)&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;&lt;BR /&gt;It looks like some c++ libraries are missed,right?&lt;BR /&gt;Could somebody give me some suggestion?&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 18 Apr 2002 06:43:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705913#M903063</guid>
      <dc:creator>Jack_27</dc:creator>
      <dc:date>2002-04-18T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: The link error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705914#M903064</link>
      <description>For C++ code you must use aCC to perform the link step - do not call ld directly.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 18 Apr 2002 07:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705914#M903064</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-04-18T07:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: The link error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705915#M903065</link>
      <description>Hi,Steven&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestion firstly.&lt;BR /&gt;However I do use the aCC compiler,my Makefile is attached,Could you have a look on it?&lt;BR /&gt;&lt;BR /&gt;The content of os.mk&lt;BR /&gt;#&lt;BR /&gt;# OS_HP: for hp operating system, HP-UX&lt;BR /&gt;#&lt;BR /&gt;OS_CC          = aCC&lt;BR /&gt;OS_LD          = ld&lt;BR /&gt;OS_AR          = ar&lt;BR /&gt;OS_LEX         = lex&lt;BR /&gt;OS_LEXFLAGS    =&lt;BR /&gt;OS_YACC        = yacc&lt;BR /&gt;OS_YACCFLAGS   = -d&lt;BR /&gt;#OS_FLAGS       = -g +w +a1 -Wl,+nocompatwarnings&lt;BR /&gt;OS_FLAGS       = -g +w&lt;BR /&gt;OS_DYNALDFLAGS =&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Jack&lt;BR /&gt;OS_LLIB        = -lc</description>
      <pubDate>Thu, 18 Apr 2002 07:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705915#M903065</guid>
      <dc:creator>Jack_27</dc:creator>
      <dc:date>2002-04-18T07:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: The link error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705916#M903066</link>
      <description>It certainly looks like you're invoking ld directly to perform the link step:&lt;BR /&gt;&lt;BR /&gt;# build the libraries&lt;BR /&gt;$(LIB_PATH)/libcom.so: $(LIBCOMOBJS)&lt;BR /&gt; $(LD) $(OS_DYNALDFLAGS) -o $@ $(LIBCOMOBJS)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The correct command line for building a shared library is:&lt;BR /&gt;&lt;BR /&gt;$ aCC -b -o ../lib/libcom.so cLog.o&lt;BR /&gt;&lt;BR /&gt;See this link for more information:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/dev/aCC/a_03_33/libs.htm#shlib" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/dev/aCC/a_03_33/libs.htm#shlib&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 18 Apr 2002 07:51:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705916#M903066</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-04-18T07:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: The link error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705917#M903067</link>
      <description>Hi,Stevens&lt;BR /&gt;&lt;BR /&gt;I have fixed it with your great help,thank you very much.You really good.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Jack</description>
      <pubDate>Thu, 18 Apr 2002 09:06:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-link-error/m-p/2705917#M903067</guid>
      <dc:creator>Jack_27</dc:creator>
      <dc:date>2002-04-18T09:06:06Z</dc:date>
    </item>
  </channel>
</rss>

