comp.lang.ada
 help / color / mirror / Atom feed
* Interface programming
@ 1996-08-19  0:00 Ramesh S. Mantri
  1996-08-19  0:00 ` Robert Dewar
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ramesh S. Mantri @ 1996-08-19  0:00 UTC (permalink / raw)



Hi,
	Need help with interface programming. I need to invoke a 
Square Root function in a program. So I tried interfacing to Fortran
as follows :
	procedure SOMEPROC is
	  package FORT_LIB is
	    function SQRT(X:FLOAT) return FLOAT;
	  private
	    pragma INTERFACE(FORTRAN, SQRT);
	  end FORT_LIB;
	  NUM : INTEGER;
	  NUMROOT : FLOAT;
	begin
	  GET(NUM); 
	  NUMROOT := SQRT(FLOAT(NUM));
	end SOMEPROC;
It is displaying a warning at the "pragma" line, and declaring "SQRT"
as and undefined identifier, in the line "NUMROOT := SQRT(FLOAT(NUM));".
If you have time, please take the trouble of informing me as to how to
rectify this. Also, the warning dispayed at the "pragma" line reads
approximately as : "... parameter types. SYSTEM.ADDRESS expected..."
Thanks for your patience.
--- Ramesh Mantri




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

end of thread, other threads:[~1996-08-21  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-19  0:00 Interface programming Ramesh S. Mantri
1996-08-19  0:00 ` Robert Dewar
1996-08-19  0:00 ` Paul Hussein
1996-08-19  0:00   ` Robert Dewar
1996-08-21  0:00 ` Pascal Ledru

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