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=0.8 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_REPLYTO,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7cbbcde0157485b2 X-Google-Attributes: gid103376,public From: Dmitriy Anisimkov Subject: Re: Problem w/ Win NT Apex or just me? Date: 1998/10/18 Message-ID: <36295348.11F16ED9@chat.ru>#1/1 X-Deja-AN: 402324893 Content-Transfer-Encoding: 7bit References: <36278110.66641D91@stelnj.com> <7082o1$93l$1@news.han.telia.se> <3627ADF9.5351FBE0@stelnj.com> To: smithm@stelnj.com Content-Type: text/plain; charset=koi8-r X-Trace: 18 Oct 1998 05:39:38 +0400, news.omskelecom.ru Organization: Self MIME-Version: 1.0 Reply-To: anisimkov@yahoo.com Newsgroups: comp.lang.ada Date: 1998-10-18T00:00:00+00:00 List-Id: Hi, you wrote: > Also, the pragma import test STILL did not work. This time the program > hung and did not complete. I have look to the Ada95 RM and have no pragma Interface. > procedure Print; > pragma Interface (C, Print); > pragma Interface_Name (Print, "_main"); The legal way to link with the other language modules is : procedure Print; pragma Import (C, Print, "_main"); And I think that using the name "_main" is dangerous becouse some compilers, GNAT for example, uses that name internally. Dmitriy.