comp.lang.ada
 help / color / mirror / Atom feed
From: Dmitriy Anisimkov <vagul@chat.ru>
To: smithm@stelnj.com
Subject: Re: Problem w/ Win NT Apex or just me?
Date: 1998/10/18
Date: 1998-10-18T00:00:00+00:00	[thread overview]
Message-ID: <36295348.11F16ED9@chat.ru> (raw)
In-Reply-To: 3627ADF9.5351FBE0@stelnj.com

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.




  reply	other threads:[~1998-10-18  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-16  0:00 Problem w/ Win NT Apex or just me? Roga Danar
1998-10-16  0:00 ` Sune Falck
1998-10-16  0:00   ` Roga Danar
1998-10-16  0:00   ` Roga Danar
1998-10-18  0:00     ` Dmitriy Anisimkov [this message]
1998-10-17  0:00 ` David C. Hoos, Sr.
1998-10-17  0:00   ` Tom Moran
1998-10-18  0:00     ` David C. Hoos, Sr.
1998-10-19  0:00   ` Roga Danar
replies disabled

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