Silverfrost Forums

Welcome to our forums

Problem - comunicating Visual Studio 2010 and FTN95

1 Jul 2013 4:09 #12544

Hi

I installed Visual Studio 2010, and then, FTN95. I choose to use them integrated, and everything seemed to be ok. But I tried to run many examples of .NET solutions from FTN95 site, and I got errors. I also tried to create a simple program, following some examples, and also got error. I created a solution with two projects (the C# and Fortran ones). I can build the Fortran project (dll), but the C# program is not recognizing it. As an example, I created file Nucleo.f95 on project Nucleo

REAL*8 FUNCTION ELEVA(BASE, EXPO)

        ASSEMBLY_INTERFACE(NAME='ELEVA')

        REAL*8 BASE, EXPO

        ELEVA = BASE ** EXPO

        RETURN

    END FUNCTION

Then, on my C# program, I use

qq = Nucleo.ELEVA(xx, 2);

When I try to build the C# exe, it gives the error: 'The name 'Nucleo' does not exist in the current context'

Can anyone help me?

Thank you,

Renato

2 Jul 2013 5:46 #12548

May I suggest that you describe here one problem at a time. Give the full source code and details of the error condition that was reported.

Please login to reply.