- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
I am using Visual C++ 6.0 and Compaq Fortran 6.5.
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page