<?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-aCC [  bool int confusion ] in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451688#M682950</link>
    <description>Thanks Kannan and Dennis for your valuable feedback. The issue was exactly as you'll mentioned. A redefinition of bool which was invoked in a "#ifndef HPUX" statement.&lt;BR /&gt;Once I provided the compiler option -DHPUX ,the redundancy was not included and compiled smoothly.&lt;BR /&gt;&lt;BR /&gt;Extra thanks to Kannan for helping hunt down the error.&lt;BR /&gt;&lt;BR /&gt;-Vinay</description>
    <pubDate>Fri, 03 Jul 2009 08:57:07 GMT</pubDate>
    <dc:creator>vinay naik</dc:creator>
    <dc:date>2009-07-03T08:57:07Z</dc:date>
    <item>
      <title>compilation error-aCC [  bool int confusion ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451684#M682946</link>
      <description>Hello,&lt;BR /&gt;I am currently wrestling with a compiler error thrown while compiling a relative archaic piece of application code with aCC( A.03.70). The code compiles fine with a previous aCC(A.03.25).Platform HP-UX 11.11 PA-RISC&lt;BR /&gt;&lt;BR /&gt;Error&lt;BR /&gt;&lt;SNIP&gt; &lt;BR /&gt;526: "/opt/aCC/include/iostream/iostream.h", line 406 # Class member function declaration is indistinguishable from "istream&lt;BR /&gt;    &amp;amp;istream::operator &amp;gt;&amp;gt;(int &amp;amp;)" already declared at ["/opt/aCC/include/iostream/iostream.h", line 384].&lt;BR /&gt;            istream&amp;amp;        operator&amp;gt;&amp;gt;(int&amp;amp;);&lt;BR /&gt;                                    ^^&lt;BR /&gt;Error 526: "/opt/aCC/include/iostream/iostream.h", line 563 # Class member function declaration is indistinguishable from "ostream&lt;BR /&gt;    &amp;amp;ostream::operator &amp;lt;&amp;lt;(int)" already declared at ["/opt/aCC/include/iostream/iostream.h", line 547].&lt;BR /&gt;            ostream&amp;amp;        operator&amp;lt;&amp;lt;(bool b) { return *this &amp;lt;&amp;lt; (int)b ; }&lt;BR /&gt;                                    ^^&lt;BR /&gt;Error 445: "/opt/aCC/include/iostream/iostream.h", line 563 # Cannot recover from earlier errors.&lt;BR /&gt;            ostream&amp;amp;        operator&amp;lt;&amp;lt;(bool b) { return *this &amp;lt;&amp;lt; (int)b ; }&lt;BR /&gt;&lt;BR /&gt;&lt;/SNIP&gt;&lt;BR /&gt;&lt;BR /&gt;in iostream.h&lt;BR /&gt;line 406 -&amp;gt; istream&amp;amp;        operator&amp;gt;&amp;gt;(int&amp;amp;);&lt;BR /&gt;line 384 -&amp;gt; istream&amp;amp;        operator&amp;gt;&amp;gt;(bool&amp;amp;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using the following compiler options&lt;BR /&gt;+Z -D_REENTRANT -AP -D_HPUX_SOURCE  -O +DS2.0 +DA2.0 -z   -D_REENTRANT -D_THREAD_SAFE -D__HPACC_THREAD_SAFE_RB_TREE -DRWSTD_MULTI_THREAD -DRW_MULTI_THREAD&lt;BR /&gt;&lt;BR /&gt;I would prefer the default -AP option rather than -AA .&lt;BR /&gt;&lt;BR /&gt;Can anybody provide pointers to resolve this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vinay</description>
      <pubDate>Thu, 02 Jul 2009 09:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451684#M682946</guid>
      <dc:creator>vinay naik</dc:creator>
      <dc:date>2009-07-02T09:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: compilation error-aCC [  bool int confusion ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451685#M682947</link>
      <description>&amp;gt;in iostream.h&lt;BR /&gt;line 406 -&amp;gt; istream&amp;amp; operator&amp;gt;&amp;gt;(int&amp;amp;);&lt;BR /&gt;line 384 -&amp;gt; istream&amp;amp; operator&amp;gt;&amp;gt;(bool&amp;amp;);&lt;BR /&gt;&lt;BR /&gt;You probably have an evil macro that defines bool as int.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;-D_REENTRANT -D_THREAD_SAFE -DRWSTD_MULTI_THREAD -DRW_MULTI_THREAD&lt;BR /&gt;&lt;BR /&gt;You can replace these by just -mt.</description>
      <pubDate>Thu, 02 Jul 2009 13:03:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451685#M682947</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-02T13:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: compilation error-aCC [  bool int confusion ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451686#M682948</link>
      <description>&lt;!--!*#--&gt;Use the preprocessor options -E -.i to get the preprocessed ouput of your source file. Find whether you have two instances of istream &amp;amp;istream::operator &amp;gt;&amp;gt;(int &amp;amp;). It proves that you (directly or indirectly) have defined a macro bool to be an int.&lt;BR /&gt;&lt;BR /&gt;Since A.03.70 does not support any options like -dM you could use the following technique to find where you have defined the macro bool (incase it could not be find by simple grep). Include #define bool catch_bool_macro. Compile your source file with the original command line. You should get a warning with the location where the macro is (re)defined.&lt;BR /&gt;&lt;BR /&gt;By the way, I see that if I define bool to an int I get the same error with A.03.25 as well like A.03.70.&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Jul 2009 05:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451686#M682948</guid>
      <dc:creator>Kannan M Jeganathan</dc:creator>
      <dc:date>2009-07-03T05:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: compilation error-aCC [  bool int confusion ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451687#M682949</link>
      <description>&lt;P&gt;&amp;gt;Kannan: Since A.03.70 does not support any options like -dM&lt;BR /&gt;&lt;BR /&gt;Instead you use cpp.ansi:&lt;BR /&gt;... -E -.i +legacy_cpp -Wp,-C,-G&lt;BR /&gt;&lt;BR /&gt;Then look for bool.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 05:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451687#M682949</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-29T05:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: compilation error-aCC [  bool int confusion ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451688#M682950</link>
      <description>Thanks Kannan and Dennis for your valuable feedback. The issue was exactly as you'll mentioned. A redefinition of bool which was invoked in a "#ifndef HPUX" statement.&lt;BR /&gt;Once I provided the compiler option -DHPUX ,the redundancy was not included and compiled smoothly.&lt;BR /&gt;&lt;BR /&gt;Extra thanks to Kannan for helping hunt down the error.&lt;BR /&gt;&lt;BR /&gt;-Vinay</description>
      <pubDate>Fri, 03 Jul 2009 08:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compilation-error-acc-bool-int-confusion/m-p/4451688#M682950</guid>
      <dc:creator>vinay naik</dc:creator>
      <dc:date>2009-07-03T08:57:07Z</dc:date>
    </item>
  </channel>
</rss>

