<?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: Call C++ routine in shareable from C main program in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096996#M43420</link>
    <description>Jean-FranÃ§ois,&lt;BR /&gt;&lt;BR /&gt;You strike me as the kind of guy who would just try first.&lt;BR /&gt;Did you? What seemed to be the problem?&lt;BR /&gt;&lt;BR /&gt;Shareable libraries do their own initialization stuff upon their activation (LIB$FIS time, or along with main), through the LIB$INITIALIZE psect magic.&lt;BR /&gt;&lt;BR /&gt;Sorry, no actual experience with this myself.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Mar 2008 10:37:58 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-03-11T10:37:58Z</dc:date>
    <item>
      <title>Call C++ routine in shareable from C main program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096995#M43419</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need to call, from C, routines in a shareable build from a library written in C++ (AXP and IA64 C and C++ version: 7.3-009)&lt;BR /&gt;&lt;BR /&gt;My main program is in C, so I want to know if I have to call some special initialization C++ runtime routine like you have to do for C (DECC$CRTL_INIT routine) when you call C routine from others languages.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jean-François</description>
      <pubDate>Tue, 11 Mar 2008 07:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096995#M43419</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2008-03-11T07:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ routine in shareable from C main program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096996#M43420</link>
      <description>Jean-FranÃ§ois,&lt;BR /&gt;&lt;BR /&gt;You strike me as the kind of guy who would just try first.&lt;BR /&gt;Did you? What seemed to be the problem?&lt;BR /&gt;&lt;BR /&gt;Shareable libraries do their own initialization stuff upon their activation (LIB$FIS time, or along with main), through the LIB$INITIALIZE psect magic.&lt;BR /&gt;&lt;BR /&gt;Sorry, no actual experience with this myself.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Mar 2008 10:37:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096996#M43420</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-03-11T10:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ routine in shareable from C main program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096997#M43421</link>
      <description>Jean-Francois,&lt;BR /&gt;&lt;BR /&gt;I have many shareables writen in C++ and called from various languages (C,COBOL) and have never have any initialization problems.&lt;BR /&gt;The shareables are linked with CXXLINK and the visible functions (which are many times wrappers) are declared in an extern "C" block.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Tue, 11 Mar 2008 10:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096997#M43421</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2008-03-11T10:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ routine in shareable from C main program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096998#M43422</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;Hein,&lt;BR /&gt;I haven't any problem, I try just to not have any.&lt;BR /&gt;For example I call DECC$CRTL_INIT using LIB$INITIALIZE psect for the python shareable image.&lt;BR /&gt;&lt;BR /&gt;So I was just wondering if this was not the same for C++.&lt;BR /&gt;&lt;BR /&gt;Bojan,&lt;BR /&gt;does this mean that you don't even call DECC$CRTL_INIT in your shareable? I have thought that it's mandatory it you use C routine from another language.&lt;BR /&gt;&lt;BR /&gt;JF</description>
      <pubDate>Thu, 13 Mar 2008 06:18:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096998#M43422</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2008-03-13T06:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ routine in shareable from C main program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096999#M43423</link>
      <description>Jean-Francois,&lt;BR /&gt;&lt;BR /&gt;Yes, I don't call DECC$CRTL_INIT in my shareables.&lt;BR /&gt;&lt;BR /&gt;Probably my shareables do not use any of the mentioned functionalities mentioned in:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/DOC/83final/5763/5763pro_028.html#index_x_750" target="_blank"&gt;http://h71000.www7.hp.com/DOC/83final/5763/5763pro_028.html#index_x_750&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(but thats not realy true, I am sure that I do some I/O)&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Thu, 13 Mar 2008 10:46:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/call-c-routine-in-shareable-from-c-main-program/m-p/5096999#M43423</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2008-03-13T10:46:57Z</dc:date>
    </item>
  </channel>
</rss>

