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

Fortran and C

clock1
Beginner
365 Views
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?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
365 Views
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
0 Kudos
Reply