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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,666ea7941e10cfc2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-11 08:06:13 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Mixed Ada and C program Date: Mon, 11 Jun 2001 10:44:07 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9g2lfs$oen$1@nh.pace.co.uk> References: NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 992270652 25047 136.170.200.133 (11 Jun 2001 14:44:12 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 11 Jun 2001 14:44:12 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:8550 Date: 2001-06-11T14:44:12+00:00 List-Id: First off, how C calls Ada is not Ada's problem. It is C's problem and can only ultimately be answered by the C compiler. Second off, there are ways of exporting Ada code that make it accessible to other languages, but there are likely to be some implementation specifics to go with it. (We can make Ada look to C as if it were C, but there may be problems depending on the two specific compilers used.) If you post the specifics of your platform, someone here will probably be able to give you an answer. State the Ada compiler/version, the C compiler/version the hardware and OS platform. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Joelle Lavergne" wrote in message news:rF4V6.895$j6.75257@news... > Hello I am pretty new to the Ada world. > > I need to build an application using Ada and C. The main application is in > Ada but I need to import C function to Ada and export Ada procedures to C. > My problem is when exporting my Ada procedure to C. > > Could anybody give me some info on how to call this Ada procedure from C ? > > Thanks > >