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 X-Google-Attributes: gid103376,public From: Drew Subject: Interfacing Ada to C Date: 1999/06/14 Message-ID: <929365827.15952@www.remarq.com>#1/1 X-Deja-AN: 489424412 X-Originating-Host: 140.76.238.7 X-Trace: WReNphoon3 929366078 10.0.3.195 (Mon, 14 Jun 1999 06:14:38 PDT) Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here NNTP-Posting-Date: Mon, 14 Jun 1999 06:14:38 PDT X-Wren-Trace: cN752czegvrCkIr8zpCfhpiNno2Bi86SiYWRjI6Tnt6AjM6Rh8iFgoGHlIyQn8XG19/T38eh+t/UxYzExoeE1dST Newsgroups: comp.lang.ada Date: 1999-06-14T00:00:00+00:00 List-Id: 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) ****