I'd be inclined to cobble the whole thing together into a shell script,
compiles, links, and all, but if you want to you can certainly just fork
and exec the fortran compile/link and load it with dlopen, amd it will
run faster that way.  Info libc is sometimes more helpful than the man
pages.

Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.

On Fri, 18 Jun 1999, Kurt Wall wrote:

> You *may* be able to use the dl interface to do this.  Have a look at
the
> man page, dlopen(3).
> 
> Kurt
> 
> Also sprach Rafael Marco de Lucas:
> > 
> >    Hello, thanks for your answer Lawson,
> > >If it's a fortran formula, why not put a fortran wrapper on it and
feed
> > >it to the fortran compiler?  Then you can link your code with it and
> > >call it with what values you like.
> >   but each time the program runs with a different formula i will have
to
> >  compile again the code, and i will have to build a new executable
file
> >  and run it, isn't it?   i would prefer to run a single executable
code
> >  and not to jump from one to other (ie. using atexit from stdlib.h)
> >    is it possible to compile/link just a function and call it from
the initial
> >  program (i mean, to add a function to the program while it is
running in a
> way
> >  that i do not need to exit from the initial program ) ?
> 
> 
> Kurt
> -- 
> Boy!  Eucalyptus!
> 




___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

Reply via email to