comp.lang.ada
 help / color / mirror / Atom feed
* What's wrong with this?
@ 1997-05-16  0:00 Anders Eliasson
  1997-05-16  0:00 ` Robert Dewar
  0 siblings, 1 reply; 3+ messages in thread
From: Anders Eliasson @ 1997-05-16  0:00 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-05-19  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-16  0:00 What's wrong with this? Anders Eliasson
1997-05-16  0:00 ` Robert Dewar
1997-05-19  0:00   ` root

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