MDRhodes
Joined: 28 Mar 2014 Posts: 4
|
Posted: Sat Jun 03, 2017 5:19 pm Post subject: Compiler will not build dll |
|
|
When I try to compile and build a Fortran dll file, I get the message:
Unable to write to file Debug\.NET\FitSubs.dll
This file is called via a C# program in Visual Studio 2015.
In a previous version of the program, I can make changes in the Fortran.dll file and it compiles and builds fine.
To ensure I was doing things correctly, I used the example dll program in the Ftn95 help file, which interfaces with a simple Windows Form. The source code looks like this:
FUNCTION Process(x)
ASSEMBLY_INTERFACE (name="Process")
INTEGER,PARAMETER::d=selected_real_kind(10)
REAL(d)::Process
REAL(d),INTENT(IN):
Process=x*x
END
In the project properties the output filename is set to Debug\.NET\Project1.dll and the output file type is set to Dynamic Link Library (DLL). When I try to compile and build it I get the same error:
Unable to write to file Debug\.NET\Project1.dll
Why won't it write the dll? |
|