You copied the Doc URL to your clipboard.


Specifies a list of paths that the linker searches for user libraries.


-L dir[,dir,...]



is a comma-separated list of directories to be searched for user libraries.

At least one directory must be specified.

When specifying multiple directories, do not include spaces between commas and directory names in the list.

armclang translates this option to --userlibpath and passes it to armlink.

See --userlibpath=pathlist for information.


The -L option has no effect when used with the -c option, that is when not linking.