Re: Creating .so file to call from IDL



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
.



Relevant Pages

  • Re: Creating .so file to call from IDL
    ... Sid wrote: ... I am trying to create a .so file from a fortran 90 program in order to ... call it from an IDL program. ... compiler options to do this? ...
    (comp.lang.fortran)
  • Creating .so file to call from IDL
    ... I am trying to create a .so file from a fortran 90 program in order to ... call it from an IDL program. ... compiler options to do this? ... My apologies if this is very trivial...I program in IDL, ...
    (comp.lang.fortran)
  • Re: NEWBIE QUESTION
    ... ||| Fortran 6.6a inside developer studio. ... I had the .F90 and changed it to ... | project in the source tree in the project settings dialog. ... fiddle with compiler options. ...
    (comp.lang.fortran)
  • Re: Initialising of allocatable character arrays in f90/f95
    ... It isn't true of the Fortran language - period. ... My use of the term "negative indefinite", ... systems (and also assumes particular compiler options - or maybe it was ...
    (comp.lang.fortran)
  • Most efficient way of vectorize the following code in Fortran?
    ... Just wanted to see if Fortran really gives a huge speedup for my ... Please note that here us is a vector; rho(:) is a column vector, ... also have an inner loop of doing the dot-product. ... compiler options to improve the speed. ...
    (comp.lang.fortran)