<?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: Compiling C++ codes using HP C compiler in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6520214#M496635</link>
    <description>&lt;P&gt;No, 'cc' is a C compiler.&lt;/P&gt;&lt;P&gt;To compile C++ programs, you must use 'aCC'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2014 11:02:37 GMT</pubDate>
    <dc:creator>SoumitraC</dc:creator>
    <dc:date>2014-06-25T11:02:37Z</dc:date>
    <item>
      <title>Compiling C++ codes using HP C compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6520192#M496634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I know whether I can compile C++ codes using HP C compiler&amp;nbsp;/opt/aCC/bin/cc. If so could you let me know the options need to use along with cc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OS info:&lt;BR /&gt;Release: HP-UX B.11.31&lt;BR /&gt;Machine: ia64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# swlist -l product |grep -i compiler&lt;BR /&gt;ACXX C.06.20 HP C/aC++ Compiler&lt;BR /&gt;C-ANSI-C C.06.20 HP C/aC++ Compiler&lt;BR /&gt;COMPLIBS B.11.31 Compiler Support Libraries&lt;BR /&gt;PHCO_42454 1.0 Linker/Compiler/Unwind ENG Manpage Patch&lt;BR /&gt;PHCO_42463 1.0 linker/compiler/unwind Japanese manpage patch&lt;BR /&gt;PHSS_38155 1.0 bundled PA C compiler on IPF&lt;BR /&gt;PHSS_40631 1.0 HP C/aC++ Compiler (A.06.24)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Program.&lt;/P&gt;&lt;P&gt;[user12-&amp;gt;xxxx]/home/user12/cbs/tmp&amp;gt;more getting_started.cpp&lt;BR /&gt;#include &amp;lt;iostream.h&amp;gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;int x,y;&lt;BR /&gt;cout &amp;lt;&amp;lt; "Enter an integer: ";&lt;BR /&gt;cin &amp;gt;&amp;gt; x;&lt;BR /&gt;y = x * 2;&lt;BR /&gt;cout &amp;lt;&amp;lt; "\n" &amp;lt;&amp;lt; y &amp;lt;&amp;lt;" is twice " &amp;lt;&amp;lt; x &amp;lt;&amp;lt;".\n";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Using cc it is not working&lt;/P&gt;&lt;P&gt;[user12-&amp;gt;xxxx]/home/user12/cbs/tmp&amp;gt;cc getting_started.cpp&lt;BR /&gt;ld: Mismatched ABI (not an ELF file) for getting_started.cpp&lt;BR /&gt;Fatal error.&lt;BR /&gt;[user12-&amp;gt;xxxx]/home/user12/cbs/tmp&amp;gt;&lt;/P&gt;&lt;P&gt;Using aCC it is working&lt;/P&gt;&lt;P&gt;[user12-&amp;gt;xxxx]/home/user12/cbs/tmp&amp;gt;aCC getting_started.cpp&lt;BR /&gt;[user12-&amp;gt;xxxx]/home/user12/cbs/tmp&amp;gt;echo $?&lt;BR /&gt;0&lt;BR /&gt;[user12-&amp;gt;xxxx]/home/user12/cbs/tmp&amp;gt;ls -l a.out&lt;BR /&gt;-rwx------ 1 user12 tuxedo 175608 Jun 25 12:58 a.out&lt;BR /&gt;[user12-&amp;gt;xxxx]/home/user12/cbs/tmp&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincere Regards,&lt;/P&gt;&lt;P&gt;Aneesh&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 10:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6520192#M496634</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2014-06-25T10:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling C++ codes using HP C compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6520214#M496635</link>
      <description>&lt;P&gt;No, 'cc' is a C compiler.&lt;/P&gt;&lt;P&gt;To compile C++ programs, you must use 'aCC'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 11:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6520214#M496635</guid>
      <dc:creator>SoumitraC</dc:creator>
      <dc:date>2014-06-25T11:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling C++ codes using HP C compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6520290#M496636</link>
      <description>&lt;P&gt;Hi Soumitra,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;the below is the comping statement and output &amp;nbsp;shared to me by developer , regarding "&lt;SPAN&gt;BS-2978.c not found" error message when I checked with him he said that can be ignored . He is claiming that this was working when he last compiled almost a year back in same box :( &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compiling option&lt;/P&gt;&lt;P&gt;-----------------&lt;/P&gt;&lt;P&gt;cc +DD64 +Olit=all -Wl,+s -D__BIGMSGQUEUE_ENABLED &amp;nbsp;-mt &amp;nbsp;I$TUXDIR/include -o fcreditSrv BS-2978.c &amp;nbsp;-L${TUXDIR}/lib fcreditSrv.o ccEnqCid.o ccRoutine.o xmlWrapper.cpp DOMTreeErrorReporter.cpp -ltxml /opt/mqm/lib/libmqm_r.so &amp;nbsp;-ltux -lbuft &amp;nbsp; -lfml -lfml32 -lengine -lpthread -lcl -lnsl /u01/app/oracle/product/10.2.0.3/lib32/libclntsh.so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compiling error messahe&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;cc: error 1913: `BS-d21.c' does not exist or cannot be read&lt;/P&gt;&lt;P&gt;ccEnqCid.c:&lt;/P&gt;&lt;P&gt;cc: error 1913: `BS-d21.c' does not exist or cannot be read&lt;/P&gt;&lt;P&gt;ccRoutine.c:&lt;/P&gt;&lt;P&gt;cc: error 1913: `BS-d21.c' does not exist or cannot be read&lt;/P&gt;&lt;P&gt;fcreditSrv.c:&lt;/P&gt;&lt;P&gt;BS-2978.c:&lt;/P&gt;&lt;P&gt;ld: Mismatched ABI (not an ELF file) for xmlWrapper.cpp&lt;/P&gt;&lt;P&gt;Fatal error.&lt;/P&gt;&lt;P&gt;CMDTUX_CAT:1832: ERROR: can't execute cc +DD32 +Olit=all -Wl,+s -D__BIGMSGQUEUE_ENABLED&amp;nbsp; -mt&amp;nbsp; -I$TUXDIR/include -o fcreditSrv BS-2978.c&amp;nbsp; -L${TUXDIR}/lib fcreditSrv.o ccEnqCid.o ccRoutine.o xmlWrapper.cpp DOMTreeErrorReporter.cpp -ltxml /opt/mqm/lib/libmqm_r.so&amp;nbsp; -ltux -lbuft&amp;nbsp;&amp;nbsp; -lfml -lfml32 -lengine -lpthread -lcl -lnsl /u01/app/oracle/product/10.2.0.3/lib32/libclntsh.so&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:30:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6520290#M496636</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2014-06-25T12:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling C++ codes using HP C compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6521440#M496637</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;gt;He is claiming that this was working when he last compiled almost a year back in same box&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not hardly.&lt;/P&gt;&lt;P&gt;The cc driver doesn't know what to do with xmlWrapper.cpp and passes it directly to ld.&amp;nbsp; ld gives that ABI error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, why do you have +DD64 but have libs like:&lt;/P&gt;&lt;P&gt;-lfml32 ... /u01/app/oracle/product/10.2.0.3/lib32/libclntsh.so&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 10:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-c-codes-using-hp-c-compiler/m-p/6521440#M496637</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-06-26T10:13:52Z</dc:date>
    </item>
  </channel>
</rss>

