https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107974
Bug ID: 107974 Summary: compiler can't find source file in path that is longer than 255 characters Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cristian.adam at gmail dot com Target Milestone: --- Created attachment 54013 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54013&action=edit clang long path Given the following path "c:\Projects\C++\this is a rather long path for a path on windows where long paths are a problem with the limit of two hundred fifty characters but there is a solution which implies adding a registry key and configuring the project to include a manifest\hello.cpp" g++ (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 12.2.0 is not able to compile the source file. The error reported is: cc1plus.exe: fatal error: hello.cpp: No such file or directory Note that LLVM MinGW 15.0.0's clang.exe was able to compile the file just fine.