comp.lang.ada
 help / color / mirror / Atom feed
* Export in generic packages
@ 1997-05-19  0:00 Rune Wemberg
  1997-05-19  0:00 ` Samuel A. Mize
  0 siblings, 1 reply; 2+ messages in thread
From: Rune Wemberg @ 1997-05-19  0:00 UTC (permalink / 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




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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-19  0:00 Export in generic packages Rune Wemberg
1997-05-19  0:00 ` Samuel A. Mize

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