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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,99a654d55a050b7b X-Google-Attributes: gid103376,public From: root Subject: Re: Using ADA procedures from C Date: 1997/05/15 Message-ID: #1/1 X-Deja-AN: 241738431 References: <5l78vs$nn0$1@luna.ffi.no> <5lbodk$g1$1@luna.ffi.no> Organization: NASA/MSFC Newsgroups: comp.lang.ada Date: 1997-05-15T00:00:00+00:00 List-Id: On 14 May 1997, Rune Wemberg wrote: > Robert Dewar (dewar@merv.cs.nyu.edu) wrote: > > Rune says > > > < > call ADA procedures from a C procedure. There are of course no > > examples.>> > > > Now if your question is about how to compile and run such programs, then > > of course you look in the users guide, not the reference manual (the > > latter is only about language features and their syntax and semantics). > I know, I know.... > > > In the users guide, you may find the section > > > Mixed Language Programming > > > helpful, it is an entire node, so it's hard to miss! > > I have 5 different user guides for Ada 95. None of theese > are discussing my problem. None of them got the section > you are referring to. > > At the Internet, there are a site at http://www.adahome.com, > which have the RM for Ada 95, but no users guide. > > Exactly what users guide are you referring to? > > -- > Rune Wemberg > ruw@ffi.no > > Hello, I'm apparently trying to do something similar to Mr. Wemberg. I have the users guide referred to by Mr. Dewar. It does mention mixed language programming. I have another guide that came with the GNAT installation. It shows an example that doesn't appear to be correct. I also have J.G.P. Barnes Ada text, which has little information about the use of Convention, Import, or Export. I am trying to call a simple Ada procedure from a C++ program. I can compile, link/bind, etc, each item individually and they run fine. I cannot get them set up and linked together however. I have followed the procedure in the GNAT users guide without success. Any other hints that might be helpful? TIA. AE address e-mail replies to: eliasson@logan.msfc.nasa.gov