comp.lang.ada
 help / color / mirror / Atom feed
From: Jason LaPenta <lapenta@orca.ds.boeing.com>
Subject: Compilier Im' using
Date: 1999/05/20
Date: 1999-05-20T00:00:00+00:00	[thread overview]
Message-ID: <37446AC7.98F26D1A@orca.ds.boeing.com> (raw)
In-Reply-To: 37444D8D.B6C7D7E5@orca.ds.boeing.com

The Compilier I'm Using is  gcc and gnat
gcc version 2.8.1
GNATMAKE 3.11b

Thanks
Jason

Jason LaPenta wrote:

> Hello,
>     I have a linking/binding question. I'm trying to call an Ada proc.
> from a C program. Something like...
>
> extern void __test( void );  // Ada proc test in a file called test.adb
> with ada defination in test.ads
>
> int main()
> {
>     __test();
>
>     return 1;
> }
>
> I'm compiling the test.ads and the main.C to object code and then trying
> to link by using
> gcc -o test.o main.o
> The originol proc. is test (w/out the two underscores). I haven't been
> able to find any examples of doing this sort of thing, so if you know of
> any on the web or otherwise it would help to point me in the right
> direction.
>
> thanks
> jason
> lapenta@orca.ds.boeing.com





  reply	other threads:[~1999-05-20  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-20  0:00 Calling Ada proceedures from a C program Jason LaPenta
1999-05-20  0:00 ` Jason LaPenta [this message]
1999-05-21  0:00   ` Compilier Im' using Robert Dewar
1999-05-20  0:00 ` Calling Ada proceedures from a C program David C. Hoos, Sr.
1999-05-20  0:00   ` Geert Bosch
1999-05-21  0:00     ` Keith Thompson
1999-05-20  0:00 ` Gautier
1999-06-09  0:00 ` rekennedy
1999-06-09  0:00   ` Robert Dewar
1999-06-10  0:00   ` David Kristola
1999-06-11  0:00   ` David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox