- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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
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
コピーされたリンク
1 返信
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
