<?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: Compilation error using template vector in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500868#M705000</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The "times" variable is defined in /usr/include/sys/times.h and /opt/aCC/include/functional headers. The functional header i think got included thro' the #include &lt;VECTOR&gt;.&lt;BR /&gt;&lt;BR /&gt;How can i remove the definition of times from the system header files or rather how to undefine it thro' my source code&lt;BR /&gt;&lt;BR /&gt;We need to compile using native HP aCC compiler. &lt;BR /&gt;&lt;BR /&gt;Is it possible that a newer patch of aCC would have fixed this issue?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghav&lt;/VECTOR&gt;</description>
    <pubDate>Wed, 09 Mar 2005 08:15:57 GMT</pubDate>
    <dc:creator>Raghav_3</dc:creator>
    <dc:date>2005-03-09T08:15:57Z</dc:date>
    <item>
      <title>Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500864#M704996</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to compile my appl source code on HP UX 11 using aCC compiler. My source code has references to STL vector template etc. I am getting the following error during compliation&lt;BR /&gt; The following is the compilation command and the error&lt;BR /&gt;&lt;BR /&gt;aCC   -O +Z -DNO_STD_NAMESPACE -DUNIX -DNO_PRAGMA -DFAO_PMF_STYLE -I. -I/var/peop&lt;BR /&gt;le/synergy/esisoft/VISUAL_CRASH/DevEnv/inc/xmlparser -I/var/people/synergy/esiso&lt;BR /&gt;ft/VISUAL_CRASH/DevEnv/inc/xmlparser/include  -I/usr/local/ux11/include/python2.&lt;BR /&gt;3  -I/usr/local/include/python2.3 -D_HOST_ENV  -DNO_STD_NAMESPACE -DHPUX -DHP -D&lt;BR /&gt;PAM_HP -I/opt/graphics/OpenGL/include -D__hpux -D_REENTRANT -D_HPUX_SOURCE -D_FI&lt;BR /&gt;LE_OFFSET_BITS=64 -DSECURITY_ENV=1 -I/lyon/meltem_9/esisoft/pamflex/v2003_9.0.0/&lt;BR /&gt;include -DSWIG_COBJECT_TYPES  -c  dmtools/weld/GenericMwfIO.cpp -o /var/people/s&lt;BR /&gt;ynergy/esisoft/bin/host_env_devV4/obj/vdb/ux11_optimized/GenericMwfIO.o&lt;BR /&gt;&lt;BR /&gt;Error 173: "/usr/include/sys/times.h", line 47 # Redefined symbol 'times';&lt;BR /&gt;    previously defined at ["/opt/aCC/include/functional", line 112].&lt;BR /&gt;             extern clock_t times(struct tms *);&lt;BR /&gt;&lt;BR /&gt;Please let me know how to correct this error.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Raghav</description>
      <pubDate>Wed, 09 Mar 2005 07:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500864#M704996</guid>
      <dc:creator>Raghav_3</dc:creator>
      <dc:date>2005-03-09T07:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500865#M704997</link>
      <description>What version of aCC do you use?</description>
      <pubDate>Wed, 09 Mar 2005 07:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500865#M704997</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-09T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500866#M704998</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The aCC version is&lt;BR /&gt;&lt;BR /&gt;aCC: HP ANSI C++ B3910B A.03.30&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghav</description>
      <pubDate>Wed, 09 Mar 2005 07:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500866#M704998</guid>
      <dc:creator>Raghav_3</dc:creator>
      <dc:date>2005-03-09T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500867#M704999</link>
      <description>the problem is that the same variable defined twice. Can't you compile it with the newest version of gcc?&lt;BR /&gt;&lt;BR /&gt;If not, you can try to remove the definition from one of the included files.&lt;BR /&gt;&lt;BR /&gt;Worked for me once.</description>
      <pubDate>Wed, 09 Mar 2005 08:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500867#M704999</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-09T08:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500868#M705000</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The "times" variable is defined in /usr/include/sys/times.h and /opt/aCC/include/functional headers. The functional header i think got included thro' the #include &lt;VECTOR&gt;.&lt;BR /&gt;&lt;BR /&gt;How can i remove the definition of times from the system header files or rather how to undefine it thro' my source code&lt;BR /&gt;&lt;BR /&gt;We need to compile using native HP aCC compiler. &lt;BR /&gt;&lt;BR /&gt;Is it possible that a newer patch of aCC would have fixed this issue?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghav&lt;/VECTOR&gt;</description>
      <pubDate>Wed, 09 Mar 2005 08:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500868#M705000</guid>
      <dc:creator>Raghav_3</dc:creator>
      <dc:date>2005-03-09T08:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500869#M705001</link>
      <description>How about -D__cplusplus&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2005 08:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500869#M705001</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-03-09T08:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500870#M705002</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think the __cplusplus will be defined by the aC++ compiler. Do we need to redefine the same?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghav</description>
      <pubDate>Wed, 09 Mar 2005 08:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500870#M705002</guid>
      <dc:creator>Raghav_3</dc:creator>
      <dc:date>2005-03-09T08:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500871#M705003</link>
      <description>It SHOULD be defined by the compiler, I just wanted to make sure it was. If nothing changes (you get the same error), then at least we've checked.</description>
      <pubDate>Wed, 09 Mar 2005 09:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500871#M705003</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-03-09T09:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error using template vector</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500872#M705004</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The __cplusplus is defined. I however got a link to an info&lt;BR /&gt;"&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,432,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,432,00.html&lt;/A&gt;"&lt;BR /&gt;which has a workaround for this issue and it worked for me. &lt;BR /&gt;It involves setting the __HPACC_USING_MULTIPLIES_IN_FUNCTIONAL defines&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghav</description>
      <pubDate>Wed, 09 Mar 2005 09:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-using-template-vector/m-p/3500872#M705004</guid>
      <dc:creator>Raghav_3</dc:creator>
      <dc:date>2005-03-09T09:49:57Z</dc:date>
    </item>
  </channel>
</rss>

