<?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 ld: gives Duplicate Symbol error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-gives-duplicate-symbol-error/m-p/3880680#M771432</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I recently upgraded my aCC compilers from A03.30 to A03.65 and with the new compiler I am getting a linker error of "Duplicate symbols" for some symbols. After some investiagation we could find that we get this problem because of the following  explicit instantiation of a template class like &lt;BR /&gt;"template class vector&lt;INT&gt;;" in a header file.&lt;BR /&gt;&lt;BR /&gt;I have removed this code and am able to build my projects, but still I get the same error with some other projects as well. Now I am confused as to what is the exact reason for this error, how my old compiler could get around some improper code constructs. &lt;BR /&gt;&lt;BR /&gt;Can you please help to resolve this issue&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Satya&lt;/INT&gt;</description>
    <pubDate>Mon, 16 Oct 2006 06:58:25 GMT</pubDate>
    <dc:creator>Satya_6</dc:creator>
    <dc:date>2006-10-16T06:58:25Z</dc:date>
    <item>
      <title>ld: gives Duplicate Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-gives-duplicate-symbol-error/m-p/3880680#M771432</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I recently upgraded my aCC compilers from A03.30 to A03.65 and with the new compiler I am getting a linker error of "Duplicate symbols" for some symbols. After some investiagation we could find that we get this problem because of the following  explicit instantiation of a template class like &lt;BR /&gt;"template class vector&lt;INT&gt;;" in a header file.&lt;BR /&gt;&lt;BR /&gt;I have removed this code and am able to build my projects, but still I get the same error with some other projects as well. Now I am confused as to what is the exact reason for this error, how my old compiler could get around some improper code constructs. &lt;BR /&gt;&lt;BR /&gt;Can you please help to resolve this issue&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Satya&lt;/INT&gt;</description>
      <pubDate>Mon, 16 Oct 2006 06:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-gives-duplicate-symbol-error/m-p/3880680#M771432</guid>
      <dc:creator>Satya_6</dc:creator>
      <dc:date>2006-10-16T06:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: ld: gives Duplicate Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-gives-duplicate-symbol-error/m-p/3880681#M771433</link>
      <description>Hi,&lt;BR /&gt;"problem" was fixed in 3.31, see&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183174" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183174&lt;/A&gt;&lt;BR /&gt;and my own thread regarding this problem:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72147" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72147&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, suggestions at:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=139183" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=139183&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Oct 2006 07:06:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-gives-duplicate-symbol-error/m-p/3880681#M771433</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-16T07:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: ld: gives Duplicate Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-gives-duplicate-symbol-error/m-p/3880682#M771434</link>
      <description>&amp;gt;Peter "problem" was fixed in 3.31&lt;BR /&gt;&lt;BR /&gt;In some of Peter's links it mentions don't put it in a .h file.  This is correct.  The C++ Standard doesn't allow multiple explicit instantiations, this would violate the ODR rule, 3.2.</description>
      <pubDate>Sat, 04 Nov 2006 05:35:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-gives-duplicate-symbol-error/m-p/3880682#M771434</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-11-04T05:35:05Z</dc:date>
    </item>
  </channel>
</rss>

