Skip to content

Intel IFX with Fortran mixed with MSVC generates wrong link flags

Hello,

I have recentely tried to upgrade out code base from Legacy Intel Fortra (ifort) to the new LLVM based compiler (IFX).

The problem that I encoutered is when the fortran library or executable depends on a C shared library. In Linux this is fine, but in Windows it generates wrong flags for the MSVC linker causing it to ingore the .def file that is used to export functions from the c dll.

A full example is attached: example_ifx.zip

The faulty command link passed to MSVC linker is: /Qoption,link,/DEF:C:\KBCDev\Software\example_ifx\src\c.def

and link.exe does not know what to do about the /Qoption parameter

Edited by Nuno
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information