Re: call_external on windows - compaq [message #40146] |
Mon, 19 July 2004 05:06 |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
Ralf,
I write my FORTRAN dlls for call_external in f77 and was successful with the
Lahey and Intel compilers (Intel is supposed to be similar to compaq/dec).
In both cases I was succesfull any problems. Two things pop in my mind:
1) Try renaming .f90 to .f or .for. The compiler may treat things
differently when it thinks that you have FORTRAN90 code (MODs are not needed
in f77). However, this will not haelp you if you rely in f90 features.
2) Have you exported your external functions using !DEC$ ATTRIBUTES
DLLEXPORT:functionname?
Besides this, it is hard to gues what went wrong. Posting codes nsippets
always helps.
Haje
"Ralf Schaa" <schaa@geo.uni-koeln.de> wrote in message
news:c848b64e.0407190309.4188e434@posting.google.com...
> Hi all,
>
> is there a tutorial on how to do call_externals on a windows-machine
> with compaq-fortran ?
> I think I have problems on building the dll from the wrapper
> f90-program and the 'working' f90-program. I did this with the
> Compaq-IDE, which gave me a dll, but IDL returned ERROR_MOD_NOT_FOUND
> (the dll was in the path ...)
>
> Best regards,
> -Ralf
|
|
|