Hello,
I'm just getting started with FTN95 Express v5.4.0.0 under Win7 64Bit. Now I got stuck with the following problem.
As a test case I created a Fortran DLL within Debug Win32 mode where I kept all the default project settings and just added the linker option '-exportall'. The DLL consists of the following subroutine:
SUBROUTINE HELLO
!DEC$ ATTRIBUTES DLLEXPORT :: HELLO
WRITE(*,*) 'HELLO WORLD'
RETURN
END SUBROUTINE HELLO
This subroutine should be called by the following Fortran program which I tried to build as well in Debug Win32 mode. Again I kept the default settings and just added the path and file name of the DLL under 'Import libraries'.
PROGRAM MAIN
!DEC$ ATTRIBUTES DLLIMPORT :: HELLO
CALL HELLO
END PROGRAM MAIN
However the compilation failed with the following error message:
Project Build /////////////
C:\Users\christoph\Documents\Silverfrost FTN95 Express\Projects\FortranEXE\FortranEXE\main.f95
Compiling...
Compiling file: main.f95 FTN95.EXE 'C:\Users\christoph\Documents\Silverfrost FTN95 Express\Projects\FortranEXE\FortranEXE\main.f95' /NO_BANNER /DEBUG /FULL_DEBUG /P6 /IMPORT_LIB C:\Users\christoph\Documents\Silverfrost FTN95 Express\Projects\FortranDLL\FortranDLL\Debug\Win32\FortranDLL.dll /FPP/REF 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll' /REF 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll' /REF 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.dll' /VS8 /DELETE_OBJ_ON_ERROR /ERROR_NUMBERS /UNLIMITED_ERRORS /BINARY 'Debug\Win32\main.obj' Compiler output: *** More than one source file specified with names C:\Users\christoph\Documents\Silverfrost FTN95 Express\Projects\FortranEXE\FortranEXE\main.f95 and FTN95 1 ERROR [C:\Users\christoph\Documents\Silverfrost FTN95 Express\Projects\FortranEXE\FortranEXE\main.f95 FTN95 5.40.0] - Compilation failed.
There were compile errors, no link performed
FortranEXE build failed.
/////////////////////////////////////
I can't figure out the problem, so any hint would be appreciated.
Thanks and best regards Christoph