I've been developing an application for the open source program pd. This requires compiling different parts of code in both Fortran and C. I've been using gcc to compile and link everything...
The fortran code has been successfully compiled, linked, and tested using the intel fortran compiler, but I'm having difficulty making the transition to linking everything together with gcc.
The makefile compiles all of the fortran code into individual .o files, and then gcc tries to link them with the C code for the module. I found that when I link using -lifcore (includes libifcore.a) in gcc, I resolve the undefined symbol errors, but further errors remain when I try to run the code. Namely, the code produces a segmentation fault. I've been trying to debug using gdb, and I find that the error stems from a symbol for_open, and subsequent calls made by ifcore.
Should I be including other libraries from the intel fortran compiler as well?
(I'm running FC4 on an i386 arch).
fortran libraries to include in using gcc