Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29232 Discussions

VS 2022 ignores "" in ifx compiler paths under Win11

JonasFriedrich
Beginner
493 Views

Hello,

 

we recently changed from Win10 to Win11 and somehow Visual Studio 2022 cuts the path at the spaces within the standard windows program files paths. The IFX Fortran compiler from the oneAPI is used.

If I check under Extras -> Options -> Intel Compilers and Libraries -> IFX Intel Fortran the executables are

$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\bin\HostX64\x64;...

and the default options are

/Qlocation,link,"$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\bin\HostX64\x64"

 

During building this error comes up:

ifx: command line warning #10161: unrecognized source type 'Files\Microsoft'; object file assumed

ifx: command line warning #10161: unrecognized source type 'Visual'; object file assumed

fpp: fatal: can't fopen file: Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64\ /Qm64  some filepath

 

Apperently the path of the exectuables or so is broken at the spaces, but I can not figure out why.

 

In Win10 and in Win11, the Visual Sutdio files have been created with CMake. As said, in Win10 the settings and paths are the same and it works there.

Does Win11 need any additional flag in CMake for applying the correct path? Or any special syntax to include spaces in file paths?

Does anyone encounter the same?

 

Thanks in advance,

Jonas

0 Kudos
0 Replies
Reply