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: Jason LaPenta Subject: Compilier Im' using Date: 1999/05/20 Message-ID: <37446AC7.98F26D1A@orca.ds.boeing.com>#1/1 X-Deja-AN: 480245654 Content-Transfer-Encoding: 7bit Sender: nntp@news.boeing.com (Boeing NNTP News Access) X-Nntp-Posting-Host: rorqual.ds.boeing.com References: <37444D8D.B6C7D7E5@orca.ds.boeing.com> Content-Type: text/plain; charset=us-ascii Organization: The Boeing Company Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-05-20T00:00:00+00:00 List-Id: The Compilier I'm Using is gcc and gnat gcc version 2.8.1 GNATMAKE 3.11b Thanks Jason Jason LaPenta wrote: > Hello, > I have a linking/binding question. I'm trying to call an Ada proc. > from a C program. Something like... > > extern void __test( void ); // Ada proc test in a file called test.adb > with ada defination in test.ads > > int main() > { > __test(); > > return 1; > } > > I'm compiling the test.ads and the main.C to object code and then trying > to link by using > gcc -o test.o main.o > The originol proc. is test (w/out the two underscores). I haven't been > able to find any examples of doing this sort of thing, so if you know of > any on the web or otherwise it would help to point me in the right > direction. > > thanks > jason > lapenta@orca.ds.boeing.com