From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5b4caa0bf3e1f8d9,start X-Google-Attributes: gid103376,public From: Drew Subject: Interfacing Ada to C Date: 1999/06/14 Message-ID: <929365326.15893@www.remarq.com>#1/1 X-Deja-AN: 489424411 X-Originating-Host: 140.76.238.7 X-Trace: WReNphoon3 929365577 10.0.3.195 (Mon, 14 Jun 1999 06:06:17 PDT) Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here NNTP-Posting-Date: Mon, 14 Jun 1999 06:06:17 PDT X-Wren-Trace: cOfA4PXnu8P7qbPF96mmv6G0p7S4s/Wrsr2otbeqp+e5tfeovvG8u7i+rbWppvz/7ubq5v6Yw+bt/LX9/7697O2q Newsgroups: comp.lang.ada Date: 1999-06-14T00:00:00+00:00 List-Id: 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) ****