comp.lang.ada
 help / color / mirror / Atom feed
From: Drew <ahohmann@sikorsky.com>
Subject: Interfacing Ada to C
Date: 1999/06/14
Date: 1999-06-14T00:00:00+00:00	[thread overview]
Message-ID: <929365827.15952@www.remarq.com> (raw)

I've built a static library containing C code using MSDEV
Studio.  When I link into the library using our DDCI Ada'83
compiler, everything works fine.  If I use MSDEV's mslink
to link the Ada code into the library, it works fine.  When
I use GNAT (gcc), I have problems.  Here's what's happening.

Ada code

Send_Message;

C code

void test (void) {

printf("In test.\n");

}

void Send_Message (void) {

printf("In send message."\n);

//This works fine.

test;
//It crashes when I try and call test.
}

Does anyone know why this is happening, and how to fix it?
It's important that we use the GNAT compiler to link into
it.



**** Posted from RemarQ - http://www.remarq.com - Discussions Start Here (tm) ****




             reply	other threads:[~1999-06-14  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-14  0:00 Drew [this message]
1999-06-14  0:00 ` Interfacing Ada to C Steve Quinlan
  -- strict thread matches above, loose matches on Subject: below --
1999-06-14  0:00 Drew
1997-05-29  0:00 Rune Wemberg
1997-05-29  0:00 ` Robert Dewar
1997-05-29  0:00 ` Samuel Tardieu
1997-05-30  0:00   ` Robert A Duff
1997-05-30  0:00   ` Matthew Heaney
1997-05-31  0:00     ` Robert A Duff
1997-06-07  0:00       ` Robert Dewar
1997-05-30  0:00 ` Robert A Duff
replies disabled

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