comp.lang.ada
 help / color / mirror / Atom feed
From: Anders Eliasson <eliasson@msfc.nasa.gov>
Subject: What's wrong with this?
Date: 1997/05/16
Date: 1997-05-16T00:00:00+00:00	[thread overview]
Message-ID: <Pine.LNX.3.95.970516102645.7251A-100000@vf700f.msfc.nasa.gov> (raw)


Will someone tell me why this:

with Text_Io; Use Text_Io;
procedure Header is
begin
  put_line ("Header");
end;
pragma Export (C, Header, "Header");

when compiled ( gcc -c filename ), generates the following error:

'pragma "Export" requires separate spec and must come before body'.

The example is directly out of the GNAT Documents INTRO Rev 1.98, from
the section 'Building a Program where the Main Program is not in Ada'.  I
have now seen various examples with 'pragma Export' used this way, the
implication is that this should work.

AE

Anders C. Eliasson
eliasson@logan.msfc.nasa.gov





             reply	other threads:[~1997-05-16  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-16  0:00 Anders Eliasson [this message]
1997-05-16  0:00 ` What's wrong with this? Robert Dewar
1997-05-19  0:00   ` root
replies disabled

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