Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28446 Discussions

Call a fortran stactic library from VC++

Juan_David_V_
Beginner
245 Views

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
0 Replies
Reply