Re: Creating .so file to call from IDL
- From: Tobias Burnus <burnus@xxxxxxxx>
- Date: Wed, 21 May 2008 12:00:58 -0700 (PDT)
On 21 Mai, 19:32, Jean H <jghas...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Sid wrote:
I am trying to create a .so file from a fortran 90 program in order to
call it from an IDL program. Could someone please tell me the correct
compiler options to do this?
You mean a .so (shared object) file from Fortran 90 routines. If you
have a full Fortran 90 program (including "PROGRAM ...") it won't
work.
$ gfortran -fPIC -c file1.f90 file2.f90
$ gfortran -shared -o libtest.so file1.o file2.o
should do the job.
Tobias
.
- References:
- Creating .so file to call from IDL
- From: Sid
- Re: Creating .so file to call from IDL
- From: Jean H
- Creating .so file to call from IDL
- Prev by Date: Re: public comments
- Next by Date: Re: public comments
- Previous by thread: Re: Creating .so file to call from IDL
- Next by thread: one-liner for characater replacement
- Index(es):
Relevant Pages
|
|