Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
3 Views

Call a fortran stactic library from VC++

Hello.

I have a fortran static library (fortranlibrary.lib) with a subroutine called Coresolver. I have called it from a fortran project and everything works excellent, I just need to add the library to the fortran project and call it like any other subroutine...

Call Coresolver(Puntosnp, PuntosKr, Vp, Sw, Kro, Krw, Npcalc, DeltaPcalc)

 

The issue is that now I need to call this subroutine from C++. Can anyone tell me please how to configure the C++ project and add the fortranlibrary.lib file?

The arguments are

integer :: Puntosnp, Puntoskr

Double presicion, dimension(*) ::  Vp, Sw, Kro, Krw, Npcalc, DeltaPcalc

0 Kudos