<?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 Duplicate symbol error with aCC and shared libraries. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-symbol-error-with-acc-and-shared-libraries/m-p/4280283#M688525</link>
    <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to build a shared library using aCC with 2 files both containing main function. &lt;BR /&gt; &lt;BR /&gt;aCC +z -c a.c&lt;BR /&gt;aCC +z -c b.c &lt;BR /&gt;&lt;BR /&gt;aCC -b -o libr.sl *.o - On this , I get error that duplicate symbols are not allowed in shared libraries. Does this mean that we cannot have 2 main calls in one library. Static libraries do allow. my scenario is b.c has some functions that be used by a.c. &lt;BR /&gt;&lt;BR /&gt;Any suggestions....&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama</description>
    <pubDate>Fri, 03 Oct 2008 07:12:16 GMT</pubDate>
    <dc:creator>RAMAKRISHNA SREEDHARA</dc:creator>
    <dc:date>2008-10-03T07:12:16Z</dc:date>
    <item>
      <title>Duplicate symbol error with aCC and shared libraries.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-symbol-error-with-acc-and-shared-libraries/m-p/4280283#M688525</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to build a shared library using aCC with 2 files both containing main function. &lt;BR /&gt; &lt;BR /&gt;aCC +z -c a.c&lt;BR /&gt;aCC +z -c b.c &lt;BR /&gt;&lt;BR /&gt;aCC -b -o libr.sl *.o - On this , I get error that duplicate symbols are not allowed in shared libraries. Does this mean that we cannot have 2 main calls in one library. Static libraries do allow. my scenario is b.c has some functions that be used by a.c. &lt;BR /&gt;&lt;BR /&gt;Any suggestions....&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama</description>
      <pubDate>Fri, 03 Oct 2008 07:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-symbol-error-with-acc-and-shared-libraries/m-p/4280283#M688525</guid>
      <dc:creator>RAMAKRISHNA SREEDHARA</dc:creator>
      <dc:date>2008-10-03T07:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate symbol error with aCC and shared libraries.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-symbol-error-with-acc-and-shared-libraries/m-p/4280284#M688526</link>
      <description>You can't do this, why would you want to do so?&lt;BR /&gt;shared libs are NOT archive libs.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Does this mean that we cannot have 2 main calls&lt;BR /&gt;&lt;BR /&gt;You can't have duplicate definitions.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;my scenario is b.c has some functions that be used by a.c.&lt;BR /&gt;&lt;BR /&gt;Delete the duplicate main function.</description>
      <pubDate>Fri, 03 Oct 2008 07:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-symbol-error-with-acc-and-shared-libraries/m-p/4280284#M688526</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-03T07:49:23Z</dc:date>
    </item>
  </channel>
</rss>

