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,4e101bd1b1b0a66c X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Calling Ada proceedures from a C program Date: 1999/06/09 Message-ID: <7jmoib$ch$1@nnrp1.deja.com>#1/1 X-Deja-AN: 487642872 References: <37444D8D.B6C7D7E5@orca.ds.boeing.com> <7jlsqd$khj$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Jun 09 22:07:15 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-06-09T00:00:00+00:00 List-Id: In article <7jlsqd$khj$1@nnrp1.deja.com>, rekennedy@my-deja.com wrote: > One of the things that I ran into early was getting the data > types to match up. Finding the Interfaces.C and > Interfaces.C.Strings packages > provided by gnat made this task much easier. Well I should hope these are provided by GNAT, since they are a required part of the Ada 95 language if you provide interfacing to C. One thing I often notice is that people struggle to do things which are actually quite simple, from not having done enough homework to know all the facilities that are available. The issue of how to interface from Ada to C is covered in a number of Ada text books, and if the description in the RM is not clear, then you should definitely find one of these texts. My recommendation is to at least read annexes A and B in the RM, these are quite readable, and describe a lot of useful stuff (including the children of Ada mentioned in the quote above). Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.