[comp.lang.pascal] EXTERNAL FORTRAN

Ron.Pritchett@uscacm.UUCP (Ron Pritchett) (11/20/89)

Duncan,
   would this unit work for a F77 program that has to have a special .LIB 
file linked into it?
 
                             Later on down,
                               Ronnue



--  
--
Ron Pritchett == ...!usceast!uscacm!Ron.Pritchett

dmurdoch@watstat.waterloo.edu (Duncan Murdoch) (11/22/89)

In article <107.2567BD58@uscacm.UUCP> Ron.Pritchett@uscacm.UUCP (Ron Pritchett) writes:
>Duncan,
>   would this unit work for a F77 program that has to have a special .LIB 
>file linked into it?

Yes, as long as it's MS Fortran (or compatible).  It works by linking all
the Fortran routines into an executable, running the executable under TP
to get them loaded, then sneaking in and finding all the addresses.
There are some things that won't work (e.g. I/O), but numerical stuff
is fine.  

In fact, I wrote it so I could use NAG's PC library (.LIB only) from TP.

(I've sent you a copy by mail, but my first try bounced.  If you don't get
it, please send me an Internet style address.)

Duncan Murdoch
dmurdoch@watstat.waterloo.edu

Ron.Pritchett@uscacm.UUCP (Ron Pritchett) (11/26/89)

Duncan,
    I don't think it'll help me, but thanks anyway. What I ended up doing 
was creating a file with the filename of a sound file I want to play in 
it and then from TP I did a : exec('C:\COMMAND.COM','/c play.exe <infile 
>null');
 
seems to work fine, but it that stupid fortran PLAY.EXE is 75k. 
 
                             Later on down,
                               Ronnue



--  
--
Ron Pritchett == ...!usceast!uscacm!Ron.Pritchett