Silverfrost Forums

Welcome to our forums

Compiler will not build dll

3 Jun 2017 4:19 #19709

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)::x 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?

Please login to reply.