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 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

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 - Intel Developer Support

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen