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,fac49e4000395e10 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: How do I pass a pointer from a C function to Ada83? Date: 1999/01/10 Message-ID: #1/1 X-Deja-AN: 430727435 Sender: matt@mheaney.ni.net References: <778sp0$50p$1@holly.prod.itd.earthlink.net> NNTP-Posting-Date: Sat, 09 Jan 1999 17:33:57 PDT Newsgroups: comp.lang.ada Date: 1999-01-10T00:00:00+00:00 List-Id: "boolaz" writes: > I am trying to pass an array pointer from a C function to my Ada83 program. > I can't seem to get the pragma interface, access type, and/or system.address > stuff to work. Any suggestions? You must provide the smallest example that will compile. We can't help you without a sample of code. That being said, here are some ideas. o You probably don't need to use System.Address anywhere. Interface and Convention pragmas largely obviate the need for typeless interface programming. o Be careful with an access type that designates an uncontrained array subtype. o Are you using the types in package Interfaces.C and its children?