renatoab
Joined: 29 Jun 2013 Posts: 1
|
Posted: Mon Jul 01, 2013 5:09 pm Post subject: Problem - comunicating Visual Studio 2010 and FTN95 |
|
|
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
Code: |
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
Code: |
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 |
|