[Bug preprocessor/107974] compiler can't find source file in path that is longer than 255 characters

cristian.adam at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 5 16:44:24 GMT 2022


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!


More information about the Gcc-bugs mailing list