comp.lang.ada
 help / color / mirror / Atom feed
* Calling Ada proceedures from a C program
@ 1999-05-20  0:00 Jason LaPenta
  1999-05-20  0:00 ` Gautier
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Jason LaPenta @ 1999-05-20  0:00 UTC (permalink / raw)


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






^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1999-06-11  0:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-20  0:00 Calling Ada proceedures from a C program Jason LaPenta
1999-05-20  0:00 ` Gautier
1999-05-20  0:00 ` David C. Hoos, Sr.
1999-05-20  0:00   ` Geert Bosch
1999-05-21  0:00     ` Keith Thompson
1999-05-20  0:00 ` Compilier Im' using Jason LaPenta
1999-05-21  0:00   ` Robert Dewar
1999-06-09  0:00 ` Calling Ada proceedures from a C program rekennedy
1999-06-09  0:00   ` Robert Dewar
1999-06-10  0:00   ` David Kristola
1999-06-11  0:00   ` David C. Hoos, Sr.

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