Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] How to build a Windows DLL from a fortran code with photran/gfortran ?

Title: sincerely_yours.txt
Dear photran users and developers,

I recently got a 72 ko fortran code full of subroutines that is usually transformed into a Windows DLL by Lahey Fortran 90 (using DLL_EXPORT lines in the code)
Could anyone tell me how I could do the same with photran ?
(I already tried using a "shared library type" project, with MinGW GCC tool chain and could get foo.o (once the DLL_EXPORT were commented out...), but the later command
gfortran -o foo.dll foo.o
does complain about "undefined reference to `MAIN__' which is normal since there is no main program.
Under Linux I would think I would have had a ranlib or ar line instead of this gfortran line...

It is the first time I try to build a Windows DLL so that I do not know the specific flags/steps to build a dll.

--
Sincerely yours,

Michel DEVEL

Back to the top