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

C application that invokes Intel Fortran

jayb
Beginner
334 Views

Hi.  I would appreciate some links that explain the options required for building a gcc C application that invokes pre-existing Intel Fortran subroutines and functions.  This would include compilation and link options.  A quick rundown would be great if that's easier.  Also, indications for replacing gcc with Intel C/C++ would be of interest; the application does not use parallel processing.

Jay

0 Kudos
1 Reply
Steven_L_Intel1
Employee
334 Views

Really the only thing of interest is to use ifort instead of ld to link. You may need to specify -cxxlib on this command. Most everything else should just work. As for replacing gcc with Intel C++, we try very hard to make it possible to just swap out the command in your makefile for icc or icpc, as needed. Try it and see. If you need Intel C++ help, you can ask in its forum.

0 Kudos
Reply