[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [photran] How to build a Windows DLL from a fortran code with
|
I played with this a bit more today, and I'm not sure where the discrepancy is. To
try and see if it was that the library I made was too simple, I went and downloaded
the BLAS library source code and tried to build a DLL. I followed the steps I
presented and everything compiled. I did not have to put any extra flags in any of
the BLAS source files. I then grabbed the test programs to check my build. Once I
made sure that the compiler knew which library to use and where to find it,
everything compiled smoothly. When I run the programs from the command line, I just
have to add the location of the DLL to my path and everything works fine. The only
catch is I can't successfully launch the executable from inside photran unless I
just copy the DLL to the current directory.
Keith Prussing
----- Original Message -----
From: "DEVEL Michel" <Michel.Devel@xxxxxxxx>
To: "Keith Prussing" <kprussing74@xxxxxxxxx>, "Photran Information" <photran@xxxxxxxxxxx>
Sent: Friday, April 30, 2010 8:28:13 AM GMT -05:00 US/Canada Eastern
Subject: Re: [photran] How to build a Windows DLL from a fortran code with
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) Well in fact, it still does not work: the dll is created but since I do not know what to put instead of the DLL_EXPORT lines in the fortran code, none of the fortran routines is exported (with the program "depends" I could see that there are only 1.3 MB of windows stuff)...
Googling a bit I have seen $DECL stuffs and .def files, which one is the easiest to learn ?
--
Sincerely yours,
Michel DEVEL