I have this error when I tried to build/debug a Fortran file in Visual Studio 2019 I just installed. Nothing else is reported. I also tried "ifort" in command and it works, but not in VS.
In the VS Options, the right Fortran compilers for Win32 and x64 are selected.
Does anyone know what the error means? Thanks!
When I try to build a MKL example, this is the error message:
Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" failed. Compiler: ifort Build flags: Id flags: The output was: 1 Microsoft Visual Studio 2019 Version 16.11.4. Copyright (C) Microsoft Corp. All rights reserved. Package 'IFLangServicePackage' failed to load. Package 'IFLangServicePackage' failed to load. Build started... 1>Error: Interface not registered 1> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
A repair might not have fixed everything. It now seems that you don't have library paths set up properly. Go to the following Tools > Options page and click Reset. Click on the x64 tab and click Reset there too, then click OK.