comp.lang.ada
 help / color / mirror / Atom feed
From: Jason LaPenta <lapenta@orca.ds.boeing.com>
Subject: Calling Ada proceedures from a C program
Date: 1999/05/20
Date: 1999-05-20T00:00:00+00:00	[thread overview]
Message-ID: <37444D8D.B6C7D7E5@orca.ds.boeing.com> (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






             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 Jason LaPenta [this message]
1999-05-20  0:00 ` Calling Ada proceedures from a C program 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.
replies disabled

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