https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86039

--- Comment #2 from Samuel Hultgren <samuel.hultgren at st dot com> ---
(In reply to Jim Wilson from comment #1)
> Windows has a 260 character default maximum path length.  See for instance
> https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).
> aspx#maxpath
> 
> This looks like an OS problem not a gcc problem.

Maybe both.

It is possible to read/write files that have longer paths than 260 characters
if you use UNC paths by prefixing absolute paths with "\\?\" on Windows.

For executing files on Windows we can improve the situation by using a
combination of UNC paths together with GetShortPathNameW before sending the
path to CreateProcessW. Only restriction here is that the resulting shorted
path must still be shorter than 260 characters.

Reply via email to