This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

dll problem with gfortran under cygwin


Hi,
I have a problem when I build the code here enclosed.

If I build a dll with

gfc -shared -o read_gfc.dll readcycle.f90

and then link to it the program

gfc -o read readgfc.f95 -L. -lread_gfc

everything build fine.

But when I launch it I got


./read

Type de problème Laplace simple ou Shrödinger (L/S) :
Fortran runtime error: End of file

The error occurs on a call to a routine in the module.

But if I build the object into the exe statically it works.

Is it a problem with gfortran or with gcc ?

What can I do to solve it ? (I need to use dlls)
--

Sincerely yours,
            Pasa Guglielmo


--------------

 guglielmo.pasa@bluewin.ch      ¦  tel. :  +41 (0)24 485 50 40 ¦

 mailing : Pasa Guglielmo       ¦  fax  :  +41 (0)24 485 50 44 ¦
           Rte des Cases 17A    ¦                              ¦ 
           CH-1890 St-Maurice   ¦  prof.: physicist,teacher    ¦
           (Switzerland)        ¦         & PhD Student        ¦ 


Ph.D.Student at:

Ecole Polytechnique Fédérale de Lausanne (EPFL)
Laboratory of Physics of Nanostructures
CH-1015 Lausanne, Switzerland
http://lpn.epfl.ch

Attachment: readcycle.f90
Description: Text document

Attachment: readgfc.f95
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]