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,8c2e7f8bf8bb63e0 X-Google-Attributes: gid103376,public From: Gerhard Griessnig Subject: Re: In GNAT/Ada95(main) use a C-Program Date: 1999/06/09 Message-ID: <375EB748.2ABAAC25@sbox.tu-graz.ac.at>#1/1 X-Deja-AN: 487599099 Content-Transfer-Encoding: 7bit References: <375E60AD.C56EAE59@sbox.tu-graz.ac.at> <7jlrn0$c2h@hobbes.crc.com> To: "David C. Hoos, Sr." Content-Type: text/plain; charset=us-ascii Organization: Graz University of Technology, Austria Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-06-09T00:00:00+00:00 List-Id: Thanks for your response, we have also read the GNAT-Users Guide. We know how to compile-bind and link C-Programes, but we do not know the Syntax how to call a C-Program in an Ada-Main-Program and deliver some Parameters. We would need some examples ( Syntax ). About our platform: We use a Sun-Workstation, more details follow. Bye, Gerhard, Peter David C. Hoos, Sr. schrieb: > Gerhard Griessnig wrote in message <375E60AD.C56EAE59@sbox.tu-graz.ac.at>... > >Hello, > >we want to bind C-Programs in a GNAT-Ada95 Mainprogram. > >How is it possible, and who is able to send us some examples. > > > >We need this > > - to communicate with a RS232 > > ( are protocols in GNAT-Ada available ? ) > > - to communicate with radar > >to our roboter (Khepera on Unix). > > > The RS-232 portion of your question is dependent of the OS/hardware > platform. Can you provide more details? I have written some > serial port communication stuff for Linux/PC and Win32. > > For the binding of C to Ada, how about reading the > Gnat User's Guide, especially the section titled > Mixed Language Programming