| |||
| Home > Linker command-line options > --reduce_paths, --no_reduce_paths | |||
This option enables or disables the elimination of redundant path name information in file paths.
Windows systems impose a 260 character limit on file paths.
Where path names exist whose absolute names expand to longer than
260 characters, you can use the --reduce_paths option
to reduce absolute path name length by matching up directories with
corresponding instances of .. and eliminating
the directory/.. sequences in pairs.
It is recommended that you avoid using long and deeply nested
file paths, in preference to minimizing path lengths using the --reduce_paths option.
A file to be linked might be at the location:
..\..\..\xyzzy\xyzzy\objects\file.c
Your current working directory might be at the location:
\foo\bar\baz\gazonk\quux\bop
The combination of these paths results in the path:
\foo\bar\baz\gazonk\quux\bop\..\..\..\xyzzy\xyzzy\objects\file.o
By using the option --reduce_paths the path
becomes:
\foo\bar\baz\xyzzy\xyzzy\objects\file.c