- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I am trying to create a DLL from .f90 code using ifort XE 2011 IA-32.
I initially tried to create a .obj file and link it with other .obj files, using another linker but that did not work. The other linker did not import any of the routines in the ifort.obj file.
My aim is to compile the code with ifort and generate .lib and .dll files which can be bound into a project using another compiler.
Is this possible?
My attempt was : ifort /free /dll /Tf ifort_lib.f90
Also, how do I manage the different calling conventions ?
John
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Yes, you can generate a dll and use it in a different project. Use a dll option to specify that a program should be linked as a dynamic-link library. You can also find a useful presentation on how to do it from VS, just google for the "How to create Fortran DLL in Visual Studio with Intel Fortran compiler".
Note that there are several ways to adjust calling and naming conventions, e.g. use an ATTRIBUTES directive or iface compiler option.
