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: <929365326.15893@www.remarq.com> (raw)

I've built a static library with C code using MS developer
studio.  When I use our DDCI Ada'83 compiler to link into
it, it works perfectly.  When I use Microsofts MSlink to
link the ada code into the C library, it works find.  When
I use GNAT (gcc) to link into the library, I have
problems.  Here's what's happening.

Ada call

Send_Message;

C code

void Test (void) {

printf("Inside test.");
}

void Send_Message (void) {

printf("Inside send message.");

//This works fine.  But when the C code calls another
//procedure inside the library, it crashes.  This only
//happens with the GNAT compiler.

test;
//it crashes here.
}

Does anyone know why this happens, and how to solve 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]
  -- strict thread matches above, loose matches on Subject: below --
1999-06-14  0:00 Interfacing Ada to C Drew
1999-06-14  0:00 ` Steve Quinlan
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   ` 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
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