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,f6a8d0c42308d020 X-Google-Attributes: gid103376,public From: njt@minster.york.ac.uk (Nigel J. Tracey) Subject: C Calling GNAT Date: 1996/07/03 Message-ID: <836384269.1@cs.york.ac.uk>#1/1 X-Deja-AN: 163451595 sender: njt@cs.york.ac.uk (Nigel J. Tracey) references: <836306640.0@cs.york.ac.uk> newsgroups: comp.lang.ada Date: 1996-07-03T00:00:00+00:00 List-Id: Can anybody provide me with an example of how to get a C function to call an Ada routine. All compiled with gcc and GNAT? I assume that this is possible. I know it is possible for Ada to call C routines, but I need to have a C routine call Ada. Also how would you go about passing parameters between the two such as enumerated types (I assume integers, etc are fairly straight-forward) Any help would be much appreciated. Thanks Nigel (Please also e-mail replies to njt@minster.york.ac.uk)