Silverfrost Forums

Welcome to our forums

Linking Intel Visual Fortran Object Files/DLLs in FTN95

29 Apr 2008 9:01 (Edited: 26 Nov 2008 4:47) #3090

Has anyone got some experience in linking Intel Visual Fortran (IVF) object files/ DLLs with SALFORD FTN95?

We have a transport model developed over the years using SALFORD FORTRAN and recently decided to parallelise it to take advantage of multi-core PC systems. The problem is that SALFORD does not support OpenMP like IVF. Furthermore, we do not want to port the SALFORD source to IVF. There are backward compatibility issues with user models that are dependent on unformatted binary files and differences in Windows programming.

The only option we’ve got is linking IVF object/DLL files in SALFORD, which is proving to be a bit awkward. Does any have expertise in this area?

29 Apr 2008 9:17 #3091

If the third party DLL uses the STDCALL protocol then you should try using /IMPORT_LIB <DLL name> on the FTN95 command line.

When using a Plato project, this can be done by selecting STDCALL in the Reference Properties Dialog when adding a Reference in the Project Explorer window.

Problems can occur when passing character strings because these require hidden arguments for the lengths of the strings and different compilers handle the hidden arguments in different ways.

Please login to reply.