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

switching to ifort from nagware and shared objects

hroe
Beginner
356 Views
I've recently switch to Mac OSX Intel and ifort from PPC and nagware f95.

I have a bunch of fortran codes that I compile with C wrappers into shared object files to then be called from IDL (a language from RSI, now ITTVIS).

Previously under nag f95 the lines I used to compile would be, e.g.:
f95 -PIC -c call_sum_bin.c
f95 -PIC -c sum_bin.f
f95 -bundle -flat_namespace -dynamic -lm -lc
-o sum_bin.so call_sum_bin.o sum_bin.o

I'm struggling to make things work with ifort. For instance, I've tried:
ifort -lm -lc -fPIC -c sum_bin.f
gcc -fPIC -c call_sum_bin.c
ld -flat_namespace -bundle -dynamic -o sum_bin.so sum_bin.o call_sum_bin.o
and a number of other permutations, which compile, but don't work. My suspicion
is I have a linking problem, but I'm not sure.

Any hints or directions to try are appreciated.

Thanks,
-Henry

0 Kudos
1 Reply
Steven_L_Intel1
Employee
356 Views
Can you provide more details about what and how things "don't work"? Perhaps it would be best if you sent a test case to Intel Premier Support.
0 Kudos
Reply