<?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 Problem CXXLINKing builtins in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-cxxlinking-builtins/m-p/3874042#M34901</link>
    <description>Attempting to link simple executables using the Standard Library causes undefined symbol errors.  For example&lt;BR /&gt;&lt;BR /&gt;$ run show_macros&lt;BR /&gt;__CRTL_VER 70210022&lt;BR /&gt;__VMS_VER 70210022&lt;BR /&gt;__VMS_VERSION V7.2-1  &lt;BR /&gt;__DECCXX_VER 60390020&lt;BR /&gt;$ cc/version&lt;BR /&gt;DEC C V5.6-003 on OpenVMS Alpha V7.2-1  &lt;BR /&gt;$ cxx/version&lt;BR /&gt;Compaq C++ V6.3-020 for OpenVMS Alpha V7.2-1  &lt;BR /&gt;$ cxxlink/version&lt;BR /&gt;Compaq C++ CXXLINK V6.3-020&lt;BR /&gt;$ write sys$output f$getsyi ( "VERSION" )&lt;BR /&gt;V7.2-1  &lt;BR /&gt;$ type play.cxx&lt;BR /&gt;&lt;BR /&gt;#include &lt;STRING&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt;    std::string a;&lt;BR /&gt;    return EXIT_SUCCESS;&lt;BR /&gt;}&lt;BR /&gt;$ mms/macro=(link=cxxlink)/from play.exe&lt;BR /&gt;CXX /NOLIST/OBJECT=PLAY.OBJ PLAY.CXX&lt;BR /&gt;CXXLINK /TRACE/NOMAP/EXEC=PLAY.EXE PLAY.OBJ&lt;BR /&gt;%LINK-W-NUDFSYMS, 3 undefined symbols:&lt;BR /&gt;%LINK-I-UDFSYM,  int __ATOMIC_DECREMENT_LONG(volatile void *) &lt;BR /&gt;%LINK-I-UDFSYM,  int __ATOMIC_INCREMENT_LONG(volatile void *) &lt;BR /&gt;%LINK-I-UDFSYM,  void __MB() &lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol void __MB() referenced  in psect $LINK$ offset %X00000470  in module PLAY file DISK$x:[PLAY]PLAY.OBJ;44&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol int __ATOMIC_DECREMENT_LONG(volatile void *) referenced  in psect $LINK$ offset %X00000490  in module PLAY file DISK$x:[PLAY]PLAY.OBJ;44&lt;BR /&gt;%MMS-F-ABORT, For target PLAY.EXE, CLI returned abort status: %X10648268.&lt;BR /&gt;&lt;BR /&gt;I've tried with #&lt;BR /&gt;include &lt;BUILTINS.H&gt; with the same result.  After reading the docs, I am surprised that the compiler is trying to call functions with those names at all.  Unfortunately, upgrading isn't really an option due to 3rd party library dependencies.&lt;BR /&gt;&lt;BR /&gt;Any answers, hints or otherwise greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks, Joe&lt;/BUILTINS.H&gt;&lt;/STDLIB.H&gt;&lt;/STRING&gt;</description>
    <pubDate>Tue, 03 Oct 2006 18:07:32 GMT</pubDate>
    <dc:creator>Joe Swatosh</dc:creator>
    <dc:date>2006-10-03T18:07:32Z</dc:date>
    <item>
      <title>Problem CXXLINKing builtins</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-cxxlinking-builtins/m-p/3874042#M34901</link>
      <description>Attempting to link simple executables using the Standard Library causes undefined symbol errors.  For example&lt;BR /&gt;&lt;BR /&gt;$ run show_macros&lt;BR /&gt;__CRTL_VER 70210022&lt;BR /&gt;__VMS_VER 70210022&lt;BR /&gt;__VMS_VERSION V7.2-1  &lt;BR /&gt;__DECCXX_VER 60390020&lt;BR /&gt;$ cc/version&lt;BR /&gt;DEC C V5.6-003 on OpenVMS Alpha V7.2-1  &lt;BR /&gt;$ cxx/version&lt;BR /&gt;Compaq C++ V6.3-020 for OpenVMS Alpha V7.2-1  &lt;BR /&gt;$ cxxlink/version&lt;BR /&gt;Compaq C++ CXXLINK V6.3-020&lt;BR /&gt;$ write sys$output f$getsyi ( "VERSION" )&lt;BR /&gt;V7.2-1  &lt;BR /&gt;$ type play.cxx&lt;BR /&gt;&lt;BR /&gt;#include &lt;STRING&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt;    std::string a;&lt;BR /&gt;    return EXIT_SUCCESS;&lt;BR /&gt;}&lt;BR /&gt;$ mms/macro=(link=cxxlink)/from play.exe&lt;BR /&gt;CXX /NOLIST/OBJECT=PLAY.OBJ PLAY.CXX&lt;BR /&gt;CXXLINK /TRACE/NOMAP/EXEC=PLAY.EXE PLAY.OBJ&lt;BR /&gt;%LINK-W-NUDFSYMS, 3 undefined symbols:&lt;BR /&gt;%LINK-I-UDFSYM,  int __ATOMIC_DECREMENT_LONG(volatile void *) &lt;BR /&gt;%LINK-I-UDFSYM,  int __ATOMIC_INCREMENT_LONG(volatile void *) &lt;BR /&gt;%LINK-I-UDFSYM,  void __MB() &lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol void __MB() referenced  in psect $LINK$ offset %X00000470  in module PLAY file DISK$x:[PLAY]PLAY.OBJ;44&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol int __ATOMIC_DECREMENT_LONG(volatile void *) referenced  in psect $LINK$ offset %X00000490  in module PLAY file DISK$x:[PLAY]PLAY.OBJ;44&lt;BR /&gt;%MMS-F-ABORT, For target PLAY.EXE, CLI returned abort status: %X10648268.&lt;BR /&gt;&lt;BR /&gt;I've tried with #&lt;BR /&gt;include &lt;BUILTINS.H&gt; with the same result.  After reading the docs, I am surprised that the compiler is trying to call functions with those names at all.  Unfortunately, upgrading isn't really an option due to 3rd party library dependencies.&lt;BR /&gt;&lt;BR /&gt;Any answers, hints or otherwise greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks, Joe&lt;/BUILTINS.H&gt;&lt;/STDLIB.H&gt;&lt;/STRING&gt;</description>
      <pubDate>Tue, 03 Oct 2006 18:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-cxxlinking-builtins/m-p/3874042#M34901</guid>
      <dc:creator>Joe Swatosh</dc:creator>
      <dc:date>2006-10-03T18:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem CXXLINKing builtins</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-cxxlinking-builtins/m-p/3874043#M34902</link>
      <description>For the record, it seems to work here.&lt;BR /&gt;&lt;BR /&gt;alp $ mms/macro=(link=cxxlink)/from play.exe&lt;BR /&gt;&lt;BR /&gt;CXX /NOLIST/OBJECT=PLAY.OBJ PLAY.CXX&lt;BR /&gt;CXXLINK /TRACE/NOMAP/EXEC=PLAY.EXE PLAY.OBJ&lt;BR /&gt;alp $ run PLAY.EXE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alp $ cc /version&lt;BR /&gt;HP C V7.1-015 on OpenVMS Alpha V7.3-2&lt;BR /&gt;&lt;BR /&gt;alp $ cxx /version&lt;BR /&gt;HP C++ V7.1-015 for OpenVMS Alpha V7.3-2&lt;BR /&gt;&lt;BR /&gt;alp $ cxxlink /version&lt;BR /&gt;hp C++ CXXLINK V7.1-015&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] upgrading isn't really an option [...]&lt;BR /&gt;&lt;BR /&gt;Even the compilers?</description>
      <pubDate>Tue, 03 Oct 2006 19:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-cxxlinking-builtins/m-p/3874043#M34902</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-10-03T19:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem CXXLINKing builtins</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-cxxlinking-builtins/m-p/3874044#M34903</link>
      <description>&amp;gt;For the record, it seems to work here.&lt;BR /&gt;&amp;gt;[...]&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; [...] upgrading isn't really an option [...]&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;Even the compilers?&lt;BR /&gt;&lt;BR /&gt;Thanks for the info, sadly compilers are unlikely to be updated.  I tried on a different system with &lt;BR /&gt;&lt;BR /&gt;"DEC C++ V6.0-001 on OpenVMS Alpha V7.2-1"&lt;BR /&gt;&lt;BR /&gt;(otherwise identical) and it worked fine.  I'm suspecting an installation issue?&lt;BR /&gt;&lt;BR /&gt;Ta, Joe</description>
      <pubDate>Wed, 04 Oct 2006 10:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-cxxlinking-builtins/m-p/3874044#M34903</guid>
      <dc:creator>Joe Swatosh</dc:creator>
      <dc:date>2006-10-04T10:05:59Z</dc:date>
    </item>
  </channel>
</rss>

