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=2.1 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,f94d6c9f97829e0c X-Google-Attributes: gid103376,public From: Joel Sherrill Subject: Re: [Fwd: Compile with C code...] Date: 2000/10/20 Message-ID: <8sps99$cdu$1@nnrp1.deja.com>#1/1 X-Deja-AN: 683843162 References: <39EEF80B.1242805C@cepsz.unizar.es> <8sn13s$1vt$1@nnrp1.deja.com> <39EF0DB2.35CED1C5@cepsz.unizar.es> X-Http-Proxy: 1.0 x53.deja.com:80 (Squid/1.1.22) for client 208.166.120.98 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Oct 20 16:35:54 2000 GMT X-MyDeja-Info: XMYDJUIDjoelsherrill Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.74 [en] (WinNT; U) Date: 2000-10-20T00:00:00+00:00 List-Id: In article <39EF0DB2.35CED1C5@cepsz.unizar.es>, Alejandro Villanueva <190921@cepsz.unizar.es> wrote: > Robert Dewar wrote: > > > In article <39EEF80B.1242805C@cepsz.unizar.es>, > > Alejandro Villanueva <190921@cepsz.unizar.es> wrote: > > > I'm not sure if this is a good place to ask this but: how do I > > call an > > > Ada procedure from a C main program using GNAT 3.11p > > > > > > I followed the user's guide instructions but didn't work !! > > > > > > These are my files attached. > > > > > > Thanks! > > > > Mostly this is an implementation independent issue, look up > > the use of the pragma Export in your Ada book ... > > > > Trying to use the internal GNAT stuff is wrong, and you > > need to know too much to do this. The documentation in the > > users guide is assuming that you use pragma Export, since > > of course this is required by the Ada 95 language in this case > > > > Also, why use such an out of date version of GNAT? > > > > Well, these are the steps I perform: > gcc -c hola.adb > gnatbind -x hola.ali > gcc main.c b_hola.o hola.o > > I really think this is correct, but I get some interesting error > messages about undefined symbols... > > Of course I use pragme Export (correctly, for sure). > > The reason I use 3.11p is because I'm working with GNAT/RTEMS to produce > an embedded system. The RTEMS operating system only uses 3.11p at this > momment :-( Hmm.. I don't think so. 3.12p patches and RPMs have been available for months. They were available soon after the 3.12p release. The newest date on any RTEMS patch to 3.12p is back in April. 3.13p patches and RPMs were made available in September. That is about a month after it was released. It was announced on both gnat-list and rtems-users. > Thanks again, > > Alejandro. > > > > > Sent via Deja.com http://www.deja.com/ > > Before you buy. > > -- > ------------------------------------------------------ > �Quieres Cobrar por Navegar en Internet? > Visita: http://www.navegana.com/dinero/flintstone.html > ------------------------------------------------------ > Alejandro Villanueva > 190921@cepsz.unizar.es > ------------------------------------------------------ > -- Joel Sherrill, Ph.D. Director of Research & Development joel@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985 Sent via Deja.com http://www.deja.com/ Before you buy.