Fortran and C

Fortran and C

clock's picture

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.
Steve Lionel (Intel)'s picture

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.

Steve

Steve

Login to leave a comment.