<?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: aC++ compiling functions with $ in name in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436031#M640036</link>
    <description>I updated my compiler yet I am still having a problem. I patched aC++ to V05.55. Is there some compiler flag I should be passing through or another bundle kit installed?&lt;BR /&gt;&lt;BR /&gt;Here is my test program with output:&lt;BR /&gt;&lt;BR /&gt;mytest.cc&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;int main();&lt;BR /&gt;void m$testm();&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;  cout &amp;lt;&amp;lt; "Hello World from C++!" &amp;lt;&amp;lt; endl;&lt;BR /&gt;  m$testm();&lt;BR /&gt;  return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void m$testm()&lt;BR /&gt;{&lt;BR /&gt;  cout &amp;lt;&amp;lt; "Hello World from m$testm" &amp;lt;&amp;lt; endl;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;Error 92: "mytest.cc", line 5 # Character '$' (value 36) was unexpected.&lt;BR /&gt;    void m$testm();&lt;BR /&gt;               ^   &lt;BR /&gt;Error 92: "mytest.cc", line 10 # Character '$' (value 36) was unexpected.&lt;BR /&gt;            m$testm();&lt;BR /&gt;                  ^   &lt;BR /&gt;Error 20: "mytest.cc", line 5 # '&lt;TYPE name=""&gt;' expected before ')'.&lt;BR /&gt;    void m$testm();&lt;BR /&gt;                 ^ &lt;BR /&gt;Error 452: "mytest.cc", line 5 # Objects may not have void type.&lt;BR /&gt;    void m$testm();&lt;BR /&gt;                 ^ &lt;BR /&gt;Error 19: "mytest.cc", line 9 # Unexpected ';'.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from C++!" &amp;lt;&amp;lt; endl;&lt;BR /&gt;                                                   ^&lt;BR /&gt;Error 224: "mytest.cc", line 9 # Arguments do not match with any function 'endl'.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from C++!" &amp;lt;&amp;lt; endl;&lt;BR /&gt;                                               ^^^^^&lt;BR /&gt;Error 92: "mytest.cc", line 15 # Character '$' (value 36) was unexpected.&lt;BR /&gt;    void m$testm()&lt;BR /&gt;               ^  &lt;BR /&gt;Error 20: "mytest.cc", line 15 # '&lt;TYPE name=""&gt;' expected before ')'.&lt;BR /&gt;    void m$testm()&lt;BR /&gt;                 ^&lt;BR /&gt;Error 173: "mytest.cc", line 15 # Redefined symbol '&lt;TYPE inserted="" by="" compiler=""&gt;'; previously defined at ["mytest.cc", line 5].&lt;BR /&gt;    void m$testm()&lt;BR /&gt;                 ^&lt;BR /&gt;Error 452: "mytest.cc", line 15 # Objects may not have void type.&lt;BR /&gt;    void m$testm()&lt;BR /&gt;                 ^&lt;BR /&gt;Error 24: "mytest.cc", line 16 # ',' expected instead of '{'.&lt;BR /&gt;    {&lt;BR /&gt;    ^&lt;BR /&gt;Error 452: "mytest.cc", line 17 # Objects may not have void type.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from m$testm" &amp;lt;&amp;lt; endl;&lt;BR /&gt;            ^^^^                                       &lt;BR /&gt;Error 699: "mytest.cc", line 17 # Error limit reached; halting compilation.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from m$testm" &amp;lt;&amp;lt; endl;&lt;BR /&gt;            ^^^^                                       &lt;BR /&gt;I am fairly confident that the other errors will go away once the '$' issue is resolved. Thanks for any help you can give.&lt;/TYPE&gt;&lt;/TYPE&gt;&lt;/TYPE&gt;&lt;/IOSTREAM&gt;</description>
    <pubDate>Mon, 06 Dec 2004 08:31:06 GMT</pubDate>
    <dc:creator>Christopher Bland</dc:creator>
    <dc:date>2004-12-06T08:31:06Z</dc:date>
    <item>
      <title>aC++ compiling functions with $ in name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436028#M640033</link>
      <description>I am very new to the HP-UX environment, so if this question is completely off-base I apologize in advance.&lt;BR /&gt;&lt;BR /&gt;I am using HP aC++/ANSI C B3910B A.05.38 [Sep 12 2002] on HP-UX B.11.22 U ia64. I am compiling a C++ file which includes a header file as a wrapper for my C++ to Fortran functions. In my header file, for example, I have:&lt;BR /&gt;&lt;BR /&gt;extern "C" void m$myfunc_ (int&amp;amp; myint);&lt;BR /&gt;void m_myfunc (int&amp;amp; myint)&lt;BR /&gt;{&lt;BR /&gt;  m$myfunc_(myint);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;When I compile the file I get an Error 92, it doesn't like the '$' character.&lt;BR /&gt;&lt;BR /&gt;I had a similar problem with Solaris C++ v5.3 and solved it by adding the '-Xm' flag. I found a nice document on HP's site comparing the Solaris C++ to aC++ but there was no corresponding flag for '-Xm' to allow the '$' character. &lt;BR /&gt;&lt;BR /&gt;Does anyone know a workaround to this, am I missing something, or is this a total loss? It is not possible for me to remove the '$' references because it is throughout my Fortran code (and there is a lot).&lt;BR /&gt;&lt;BR /&gt;I appreciate any help that anyone can give. Please let me know if there is any other information needed that I failed to provide.&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Dec 2004 09:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436028#M640033</guid>
      <dc:creator>Christopher Bland</dc:creator>
      <dc:date>2004-12-03T09:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: aC++ compiling functions with $ in name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436029#M640034</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Get the latest compiler&lt;BR /&gt;&lt;BR /&gt;This was fixed for pa-risc in the new&lt;BR /&gt;&lt;BR /&gt;HP-UX 11i v1.6 (B.11.22) (for ItaniumÂ® 2-based systems)&lt;BR /&gt; &lt;BR /&gt;Compiler Version A.05.55 HP C  Available in January 2004 as Patch PHSS_30023 &lt;BR /&gt;Â» PHSS_30023 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;patch fix list&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30024 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;u2comp/be patch patch &lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30211 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;linker cumulative patch&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30212 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;libm cumulative patch&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_28975 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;milli.a cumulative patch &lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30125 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;unwind library cumulative patch &lt;BR /&gt; You must already have A.05.36 installed in order to install PHSS_30023.&lt;BR /&gt;&lt;BR /&gt;PHSS_30023 has many defect fixes for HP-UX 11i v1.6 (B.11.22) release and supports new features.&lt;BR /&gt;&lt;BR /&gt;PHSS_30024 is only needed for +O4 (or +O3 for libm inlining) and the new -ipo option.&lt;BR /&gt;&lt;BR /&gt;PHSS_30024 also requires PHSS_30211.&lt;BR /&gt; &lt;BR /&gt;Compiler Version A.05.55 for HP aC++ Available in January 2004 as Patch PHSS_30022 &lt;BR /&gt;Â» PHSS_30022 &lt;BR /&gt;&lt;BR /&gt;Â» patch fix list&lt;BR /&gt;Â» PHSS_30210 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;aC++ runtime patch&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30024 &lt;BR /&gt;&lt;BR /&gt;u2comp/be patch&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30211 &lt;BR /&gt;&lt;BR /&gt;linker cumulative patch&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30212 &lt;BR /&gt;&lt;BR /&gt;libm cumulative patch&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_28975 &lt;BR /&gt;&lt;BR /&gt;milli.a cumulative patch&lt;BR /&gt;&lt;BR /&gt;Â» PHSS_30215 &lt;BR /&gt;&lt;BR /&gt;unwind cumulative patch&lt;BR /&gt; You must already have A.05.36 installed in order to install PHSS_28977.&lt;BR /&gt;&lt;BR /&gt;PHSS_30022 has many defect fixes for HP-UX 11i v1.6 (B.11.22) release.&lt;BR /&gt;&lt;BR /&gt;PHSS_30024 is only needed for +O4 (or +O3 for libm inlining) and the new -ipo option.&lt;BR /&gt;&lt;BR /&gt;PHSS_30024 also requires PHSS_30211.&lt;BR /&gt;&lt;BR /&gt;PHSS_30210 fixes several memory leaks. Installing PHSS_30210 may require installing the latest gdb to handle a demangling change.&lt;BR /&gt;&lt;BR /&gt;PHSS_30215 is needed to fix a memory leak on throw.&lt;BR /&gt;&lt;BR /&gt;The librwtool runtime library matches Rogue Wave Version 7.0.6.&lt;BR /&gt;&lt;BR /&gt;The libstd runtime library matches Rogue Wave Version 1.2.1.&lt;BR /&gt;&lt;BR /&gt;The libstd_v2 runtime library matches Rogue Wave Version 2.02.01.&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 03 Dec 2004 10:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436029#M640034</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-12-03T10:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: aC++ compiling functions with $ in name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436030#M640035</link>
      <description>Thanks a lot for the reply. I apologize for not realizing this prior to posting. The sad thing is I actually saw this patch but did not understand the details. I am installing it now and will see how it goes. Thank you again for your help.</description>
      <pubDate>Fri, 03 Dec 2004 13:05:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436030#M640035</guid>
      <dc:creator>Christopher Bland</dc:creator>
      <dc:date>2004-12-03T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: aC++ compiling functions with $ in name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436031#M640036</link>
      <description>I updated my compiler yet I am still having a problem. I patched aC++ to V05.55. Is there some compiler flag I should be passing through or another bundle kit installed?&lt;BR /&gt;&lt;BR /&gt;Here is my test program with output:&lt;BR /&gt;&lt;BR /&gt;mytest.cc&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;int main();&lt;BR /&gt;void m$testm();&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;  cout &amp;lt;&amp;lt; "Hello World from C++!" &amp;lt;&amp;lt; endl;&lt;BR /&gt;  m$testm();&lt;BR /&gt;  return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void m$testm()&lt;BR /&gt;{&lt;BR /&gt;  cout &amp;lt;&amp;lt; "Hello World from m$testm" &amp;lt;&amp;lt; endl;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;Error 92: "mytest.cc", line 5 # Character '$' (value 36) was unexpected.&lt;BR /&gt;    void m$testm();&lt;BR /&gt;               ^   &lt;BR /&gt;Error 92: "mytest.cc", line 10 # Character '$' (value 36) was unexpected.&lt;BR /&gt;            m$testm();&lt;BR /&gt;                  ^   &lt;BR /&gt;Error 20: "mytest.cc", line 5 # '&lt;TYPE name=""&gt;' expected before ')'.&lt;BR /&gt;    void m$testm();&lt;BR /&gt;                 ^ &lt;BR /&gt;Error 452: "mytest.cc", line 5 # Objects may not have void type.&lt;BR /&gt;    void m$testm();&lt;BR /&gt;                 ^ &lt;BR /&gt;Error 19: "mytest.cc", line 9 # Unexpected ';'.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from C++!" &amp;lt;&amp;lt; endl;&lt;BR /&gt;                                                   ^&lt;BR /&gt;Error 224: "mytest.cc", line 9 # Arguments do not match with any function 'endl'.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from C++!" &amp;lt;&amp;lt; endl;&lt;BR /&gt;                                               ^^^^^&lt;BR /&gt;Error 92: "mytest.cc", line 15 # Character '$' (value 36) was unexpected.&lt;BR /&gt;    void m$testm()&lt;BR /&gt;               ^  &lt;BR /&gt;Error 20: "mytest.cc", line 15 # '&lt;TYPE name=""&gt;' expected before ')'.&lt;BR /&gt;    void m$testm()&lt;BR /&gt;                 ^&lt;BR /&gt;Error 173: "mytest.cc", line 15 # Redefined symbol '&lt;TYPE inserted="" by="" compiler=""&gt;'; previously defined at ["mytest.cc", line 5].&lt;BR /&gt;    void m$testm()&lt;BR /&gt;                 ^&lt;BR /&gt;Error 452: "mytest.cc", line 15 # Objects may not have void type.&lt;BR /&gt;    void m$testm()&lt;BR /&gt;                 ^&lt;BR /&gt;Error 24: "mytest.cc", line 16 # ',' expected instead of '{'.&lt;BR /&gt;    {&lt;BR /&gt;    ^&lt;BR /&gt;Error 452: "mytest.cc", line 17 # Objects may not have void type.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from m$testm" &amp;lt;&amp;lt; endl;&lt;BR /&gt;            ^^^^                                       &lt;BR /&gt;Error 699: "mytest.cc", line 17 # Error limit reached; halting compilation.&lt;BR /&gt;            cout &amp;lt;&amp;lt; "Hello World from m$testm" &amp;lt;&amp;lt; endl;&lt;BR /&gt;            ^^^^                                       &lt;BR /&gt;I am fairly confident that the other errors will go away once the '$' issue is resolved. Thanks for any help you can give.&lt;/TYPE&gt;&lt;/TYPE&gt;&lt;/TYPE&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Mon, 06 Dec 2004 08:31:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/3436031#M640036</guid>
      <dc:creator>Christopher Bland</dc:creator>
      <dc:date>2004-12-06T08:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: aC++ compiling functions with $ in name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/5442975#M640037</link>
      <description>&lt;P&gt;&amp;gt;I patched aC++ to A.05.55. Is there some compiler flag I should be passing through?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are on aCC3 or aCC5, you must pass in -ext.&amp;nbsp; For aCC6 and PA HP C, it's enabled by default.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 22:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ac-compiling-functions-with-in-name/m-p/5442975#M640037</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-01-09T22:19:48Z</dc:date>
    </item>
  </channel>
</rss>

