Software Archive
Read-only legacy content
17061 Discussions

Mixed Visual C++ /Fortran

Intel_C_Intel
Employee
552 Views
I am trying to call a simple fortran subroutine from a simple dialog based Visual C++ (MFC) program. I am having endless problems compiling with what seems to be link library errors (LNK2001 etc). Can anybody point me in the right direction for doing this. I would be especially like to see a simple working example of a dialog calling a fortran subroutine and detail of the compile/build settings.
I am using Visual C++ 6.0 and Compaq Fortran 6.5.

Thanks
0 Kudos
1 Reply
Steven_L_Intel1
Employee
552 Views
Without knowing what symbols you're getting errors about, it's hard to diagnose the problem. There is nothing special about a dialog-based application calling Fortran - see the example of Visual C calling Fortran on our web site. Also, read the chapter on Mixed-Language Programming in the Visual Fortran Programmer's Guide.

Steve
0 Kudos
Reply