From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7a4bf5a82094fb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-14 09:33:21 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!xyzzy!nntp From: "John Smith" Subject: Re: Rational Apex Ada - Pragma interface with C++ X-Nntp-Posting-Host: pcb806143.slb.cal.boeing.com Message-ID: X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Priority: 3 X-Msmail-Priority: Normal Sender: nntp@news.boeing.com (Boeing NNTP News Access) Organization: The Boeing Company X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 References: <3DA6B3DA.98A0240E@earthlink.net> Date: Mon, 14 Oct 2002 16:28:28 GMT Xref: archiver1.google.com comp.lang.ada:29772 Date: 2002-10-14T16:28:28+00:00 List-Id: Thank you for your input. Unfortunately I don't have the Apex C++ compiler installed. Thanks. "Marc A. Criley" wrote in message news:3DA6B3DA.98A0240E@earthlink.net... > John Smith wrote: > > > > Does anyone know how to use pragma interface for interfacing C++ functions > > to an Ada program. I know how to do it with C, but can't seem to get it to > > work with C++. > > There are detailed instructions in the Apex documentation on how to do > this, > and they do work. > > The part that isn't mentioned, though, is that the C++ _must_ be > compiled > with Apex C++. Otherwise the run-time environments conflict, and the > resulting executable runs unreliably, if at all, which was our > experience. > This rather significant restriction was stated by a Rational > representative. > > Originally, the C++ code we had to link in was compiled with Sun's Forte > C++, and we were fortunate that the nature of the code was highly > algorithmic and portable, so compiling it with Apex C++ went quite > smoothly. > > Marc A. Criley > Quadrus Corporation > www.quadruscorp.com