- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page