Fortran and C

Fortran and C

My main program is in Fortran and I need to use libraries written in C. How do I enable my program to read and understand the libraries?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If the libraries are already compiled into a .LIB, then you don't need your program to "read" the libraries, just link against them and call them. I suggest you read the chapter on mixed-language programming in the Visual Fortran Programmer's Guide (if you are using Visual Fortran). Then just add the .LIB files to your project as if they were sources, and they'll be automatically linked.


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today