https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107974
--- Comment #3 from Cristian Adam <cristian.adam at gmail dot com> --- I've used the manifest tool from Visual C++ (mt.exe) to inject this manifest: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- Copyright (c) Microsoft Corporation --> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <application xmlns="urn:schemas-microsoft-com:asm.v3"> <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings"> <ws2:longPathAware>true</ws2:longPathAware> </windowsSettings> </application> </assembly> with the command line: mt.exe -nologo -manifest "cc1plus.exe.manifest" -outputresource:"cc1plus.exe;#1" And I was able to compile the hello.cpp source file!