This linker option specifies a prefix for the library search path.


Read syntax diagramSkip visual syntax diagram>>- -Z--string-------------------------------------------------><


This linker option is useful when developing a new version of a library. Usually you use it to build on one level of an operating system but run on a different level, so that you can search a different path on the development platform than on the target platform. This is possible because the prefix is not stored in the executable.

If you use this option more than once, the strings are appended to each other in the order specified and then they are added to the beginning of the library search paths.

Related information