I learned Fortran last millennium, but haven't used it regularly for several decades, and certainly not in a more modern context. I now find myself in an environment with a lot of good, legacy code that I need to be able to interact with. To that end, I'd like to be able to turn at least some of the code into DLLs for referencing from C# applications. This interaction will be a learning process for me, especially given that we will need to exchange somewhat complex data structures. However, the first step is getting a simple DLL working.
I found a simple and excellent article at https://software.intel.com/en-us/articles/calling-fortran-function-or-subroutine-in-dll-from-c-code that appears to give me exactly what I need. Unfortunately, however, when I attempt to run it I get the following:
- Unable to find an entry point named 'FSUB' in DLL 'FortranDLL01.dll'
I'm sure it's something trivial I'm doing wrong, possibly even some compiler switches, but I'm at a loss. Any help would be much appreciated!
Thanks!
Brad.