From: ruw@ffi.no (Rune Wemberg)
Subject: Export in generic packages
Date: 1997/05/19
Date: 1997-05-19T00:00:00+00:00 [thread overview]
Message-ID: <5lpm7e$gq7$1@luna.ffi.no> (raw)
Hello!
I am trying to use the pragma Export in a generic
package for exporting an Ada procedure to C. The
gnatcompiler give me the message:
"internal entity cannot be exported"
The source looks like this:
generic
-- Something here...
package Generic_Pack
procedure My_Proc(Item : in Float ;
AnotherItem : out Float ;
ThirdItem : out Float) ;
pragma Export(C, My_Proc, "my_proc");
end Generic_Pack;
If I try to use pragma Export outside the generic
package, I get the message:
"pragma EXPORT argument must be in same declarative part"
Is it not possible to export procedures from generic packages,
or instantions of theese?
--
Rune Wemberg
ruw@ffi.no
next reply other threads:[~1997-05-19 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-19 0:00 Rune Wemberg [this message]
1997-05-19 0:00 ` Export in generic packages Samuel A. Mize
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox