<?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 Error message for strrchr() in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-for-strrchr/m-p/953374#M687035</link>
    <description>&lt;P&gt;Hi.&lt;BR /&gt; I would like to keep this description short and simple…&lt;BR /&gt; &lt;BR /&gt; In a source code I am using strrchr() as…&lt;BR /&gt; char * pvNameStr=strrchr(mName.c_str(),'/');&lt;BR /&gt; &lt;BR /&gt; I tried to build this code with aCC compiler version “A.03.39” with ‘what’ string as &lt;BR /&gt; $Revision: 92453-07 linker linker crt0.o B.11.30 020412 $&lt;BR /&gt; HP aC++ B3910B A.03.39&lt;BR /&gt; HP aC++ B3910B A.03.33 Language Support Library&lt;BR /&gt; HP-UX version B.11.00.&lt;BR /&gt; &lt;BR /&gt; The code complied without any error, but when I tried compiling it on aCC with version “A.03.73” with what string as…&lt;BR /&gt; $Revision: 92453-07 linker linker crt0.o B.11.47 051104 $&lt;BR /&gt; HP aC++ B3910B A.03.73&lt;BR /&gt; HP aC++ B3910B A.03.66 Classic Iostream Library&lt;BR /&gt; HP aC++ B3910B A.03.66 Language Support Library&lt;BR /&gt; &lt;BR /&gt; and HP-UX version B.11.11; I got following error message …&lt;BR /&gt; “Cannot initialize ‘char *’ with ‘const char *’”&lt;BR /&gt; &lt;BR /&gt; I know I need to collect the return val of strrchr() in const char *, but who come then it was supported on older aCC version?&lt;BR /&gt; Has then change been incorporated in later versions of aCC?&lt;BR /&gt; &lt;BR /&gt; Thanks &lt;BR /&gt; Rakesh.&lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from Itanium Based - Experts Online Now!!! to HP-UX &amp;gt; languages - HP Forums moderator&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2013 01:55:35 GMT</pubDate>
    <dc:creator>Rakesh Thakur</dc:creator>
    <dc:date>2013-03-15T01:55:35Z</dc:date>
    <item>
      <title>Error message for strrchr()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-for-strrchr/m-p/953374#M687035</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt; I would like to keep this description short and simple…&lt;BR /&gt; &lt;BR /&gt; In a source code I am using strrchr() as…&lt;BR /&gt; char * pvNameStr=strrchr(mName.c_str(),'/');&lt;BR /&gt; &lt;BR /&gt; I tried to build this code with aCC compiler version “A.03.39” with ‘what’ string as &lt;BR /&gt; $Revision: 92453-07 linker linker crt0.o B.11.30 020412 $&lt;BR /&gt; HP aC++ B3910B A.03.39&lt;BR /&gt; HP aC++ B3910B A.03.33 Language Support Library&lt;BR /&gt; HP-UX version B.11.00.&lt;BR /&gt; &lt;BR /&gt; The code complied without any error, but when I tried compiling it on aCC with version “A.03.73” with what string as…&lt;BR /&gt; $Revision: 92453-07 linker linker crt0.o B.11.47 051104 $&lt;BR /&gt; HP aC++ B3910B A.03.73&lt;BR /&gt; HP aC++ B3910B A.03.66 Classic Iostream Library&lt;BR /&gt; HP aC++ B3910B A.03.66 Language Support Library&lt;BR /&gt; &lt;BR /&gt; and HP-UX version B.11.11; I got following error message …&lt;BR /&gt; “Cannot initialize ‘char *’ with ‘const char *’”&lt;BR /&gt; &lt;BR /&gt; I know I need to collect the return val of strrchr() in const char *, but who come then it was supported on older aCC version?&lt;BR /&gt; Has then change been incorporated in later versions of aCC?&lt;BR /&gt; &lt;BR /&gt; Thanks &lt;BR /&gt; Rakesh.&lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from Itanium Based - Experts Online Now!!! to HP-UX &amp;gt; languages - HP Forums moderator&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 01:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-for-strrchr/m-p/953374#M687035</guid>
      <dc:creator>Rakesh Thakur</dc:creator>
      <dc:date>2013-03-15T01:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error message for strrchr()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-for-strrchr/m-p/953375#M687036</link>
      <description>The proper forum for aC++ questions is HP-UX &amp;gt; Languages:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/categoryhome.do?categoryId=150" target="_blank" rel="nofollow"&gt;http://forums.itrc.hp.com/service/forums/categoryhome.do?categoryId=150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Especially since you are asking about an obsolete PA-RISC compiler.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I know I need to collect the return val of strrchr() in const char*, but who come then it was supported on older aCC version?&lt;BR /&gt;&lt;BR /&gt;Because you used -AA, where before the Standard C++ strrchr overloads are missing with the default -AP.</description>
      <pubDate>Fri, 11 Jul 2008 05:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-for-strrchr/m-p/953375#M687036</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-11T05:57:46Z</dc:date>
    </item>
  </channel>
</rss>

