PDA

View Full Version : DLL_EXPORT functions from Fortran 77


guy
03-31-2004, 10:05 PM
I need to export functions for a dll built with Fortran 77 code files, to be used by Fortran .NET wrapper.

Using DLL_EXPORT for the subroutines of the f77 worked OK. However, using the same method for the functions yielded the runtime message "Unable to find entry point" on calling each of the exported functions.

How can I export f77 functions to be used by a .NET wrapper?

PS: on f90 this method works fine.

tzeis
04-01-2004, 05:44 PM
There are some restrictions on what sorts of function results can be passed back to Fortran for .NET from unmanaged code. These are mainly things that are allocatable, derived types, or adjustable length character types.
If you want to post a small example, I can take a look at it, and get more specific.