Forum: GHDL Implementing foreign function in Ada

Posted by Alex Huntley (Guest)
on 2008-12-15 13:38
(Received via mailing list)
_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss
Posted by unknown (Guest)
on 2008-12-15 14:58
(Received via mailing list)
Quoting Alex Huntley <alexn.huntley@virgin.net>:
> end test;
>
> and this works fine, so I'm guessing it's something to do with the way I'm
> compiling the ada code, the gnat installation or possibly the way GHDL is
> looking for the ada run time library?

GHDL is not looking for the ada run time library.
So you have to take care of this.

You can't expect to execute an Ada subprogram without first elaboration.

You have to build a stand-alone library (See GNAT manual for the 
details) and
then load it.

Tristan.
This topic is locked and can not be replied to.