<?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 with CC in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/3441314#M640022</link>
    <description>Probably missing crt0.o. For example,&lt;BR /&gt;&lt;BR /&gt;(fail)&lt;BR /&gt;$ ld myobj.o -lc&lt;BR /&gt;ld: Unsatisfied symbols:&lt;BR /&gt;   $global$ (data)&lt;BR /&gt;&lt;BR /&gt;(succeed)&lt;BR /&gt;$ ld myobj.o /opt/langtools/lib/crt0.o -lc&lt;BR /&gt;&lt;BR /&gt;ld man page explains:&lt;BR /&gt;&lt;BR /&gt;Code and data from shared libraries is never copied into an executable&lt;BR /&gt;program.  The dynamic loader /usr/lib/dld.sl is invoked at startup&lt;BR /&gt;time by the startup file crt0.o if a program uses shared libraries.&lt;BR /&gt;Identical copies of crt0.o can be found in either /usr/ccs/lib/crt0.o&lt;BR /&gt;or /opt/langtools/lib/crt0.o.</description>
    <pubDate>Tue, 14 Dec 2004 01:43:41 GMT</pubDate>
    <dc:creator>Masatake Hanayama</dc:creator>
    <dc:date>2004-12-14T01:43:41Z</dc:date>
    <item>
      <title>Compiling with CC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/3441312#M640020</link>
      <description>I am trying to compile on a HP-UX 10.20 with the CC compiler. I successfully compiled my program but failed with the link step. The error I got was unfound symbol $global(data) what is that? How do I get it resolved.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 11 Dec 2004 00:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/3441312#M640020</guid>
      <dc:creator>Donald Skidmore</dc:creator>
      <dc:date>2004-12-11T00:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling with CC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/3441313#M640021</link>
      <description>Could you post the entire error message? That might give us a hint here.</description>
      <pubDate>Sun, 12 Dec 2004 05:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/3441313#M640021</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-12T05:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling with CC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/3441314#M640022</link>
      <description>Probably missing crt0.o. For example,&lt;BR /&gt;&lt;BR /&gt;(fail)&lt;BR /&gt;$ ld myobj.o -lc&lt;BR /&gt;ld: Unsatisfied symbols:&lt;BR /&gt;   $global$ (data)&lt;BR /&gt;&lt;BR /&gt;(succeed)&lt;BR /&gt;$ ld myobj.o /opt/langtools/lib/crt0.o -lc&lt;BR /&gt;&lt;BR /&gt;ld man page explains:&lt;BR /&gt;&lt;BR /&gt;Code and data from shared libraries is never copied into an executable&lt;BR /&gt;program.  The dynamic loader /usr/lib/dld.sl is invoked at startup&lt;BR /&gt;time by the startup file crt0.o if a program uses shared libraries.&lt;BR /&gt;Identical copies of crt0.o can be found in either /usr/ccs/lib/crt0.o&lt;BR /&gt;or /opt/langtools/lib/crt0.o.</description>
      <pubDate>Tue, 14 Dec 2004 01:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/3441314#M640022</guid>
      <dc:creator>Masatake Hanayama</dc:creator>
      <dc:date>2004-12-14T01:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling with CC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/5441529#M640023</link>
      <description>&lt;P&gt;&amp;gt;Probably missing crt0.o.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's correct.&amp;nbsp; That's why you should always link with the compiler driver.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2012 20:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-with-cc/m-p/5441529#M640023</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-01-07T20:24:07Z</dc:date>
    </item>
  </channel>
</rss>

