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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,afaf6b0b4d015191 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-07 06:01:35 PST Path: newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!lsanca1-snf1!news.gtei.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3AF68F86.7DA2B0C9@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: including C routines in Ada (newbie ask for assistance) References: <3af67ee5.9539925@news.nl.uu.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 07 May 2001 13:01:34 GMT NNTP-Posting-Host: 158.252.122.170 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 989240494 158.252.122.170 (Mon, 07 May 2001 06:01:34 PDT) NNTP-Posting-Date: Mon, 07 May 2001 06:01:34 PDT X-Received-Date: Mon, 07 May 2001 06:00:00 PDT (newsmaster1.prod.itd.earthlink.net) Xref: newsfeed.google.com comp.lang.ada:7253 Date: 2001-05-07T13:01:34+00:00 List-Id: Noam Kloos wrote: > > Hi Once I had someone show me how to write routines in C and import > them into Ada source with pragma Import(....); > I know how to do a system call pragma import(C,C_System,"system"); but > how do I access a c source file I have written myself? If you're using GNAT, look in the GNAT User Guide in the section on "Mixed Language Programming/Interfacing to C", and look at the "use_of_import.adb" example in the GNAT examples directory. Marc A. Criley Senior Staff Engineer Quadrus Corporation www.quadruscorp.com