Compiler x64 on Visual studio 2022 undetected

I’m trying to compile a program with Visual Sudio 2022 professional.

But at the moment I click on “Start”, this error message appears :
“Configuration ‘Debug|x64’ requires compiler support fpr the ‘x64’ platform, but that support is non-installed.”

I tried uninstalling/installing MVS (with the C++ desktop option) and IntelAPI, I tried a few things with ChatGPT and spent already too much time on this.

Has any one of you got an idea ?

Thank you

Welcome to the forum. You probably need to set the compiler to ifx instead of ifort. I had the same problem last week and was able to solve it in my specific environment by telling CMake it needed to look for a particular toolset. See the thread Problems with Visual Studio and Intel Fortran oneAPI

Thank you for your answer. I’m using it on windows 11. I’m trying to figure out with Chat GPT how to set the compiler to ifx but I’m struggling. Would you know a procedure that would work for me ?

Thanks also for the thread but it’s not really helping my case, and I’m not using Cmake so…

Alright I found it, it was really simple actually. Just had to look in the properties of my file and set the compiler to IFX.

Thanks a lot again.

I’m glad to hear that you found a solution. In the future, should you have questions about using Intel Fortran, I suggest you post in Intel® Fortran Compiler - Intel Community