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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95d036084078aa89,start X-Google-Attributes: gid103376,public From: you4818@aol.com (You4818) Subject: Re:Compiling, binding, and linking an Ada prog. interfaced with C Date: 1998/07/27 Message-ID: <1998072706002200.CAA02664@ladder01.news.aol.com>#1/1 X-Deja-AN: 375220730 Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada X-Admin: news@aol.com Date: 1998-07-27T00:00:00+00:00 List-Id: Hi I am trying to interface an Ada program to C, such that the main program is in Ada and some entities are being imported from a C header file (e.g. constant variables). For example, consider the following C_File.h : #define Max_Val 100 Ada_File.adb : with Interfaces.C ; procedure Ada_File is MAX_VAL : Integer ; pragma Import(C,MAX_VAL,"Max_Val") ; begin ...... process MAX_VAL ; end Ada_File ; How do I compile, bind and link the above files (where Ada_File is the main program). Thanks in advance Samir