Visible to Intel only — GUID: GUID-F42169E9-8ECF-400A-832D-656BD1DBC8A7
Visible to Intel only — GUID: GUID-F42169E9-8ECF-400A-832D-656BD1DBC8A7
l
Tells the linker to search for a specified library when linking.
Syntax
Linux: |
-lstring |
Windows: |
None |
Arguments
string |
Specifies the library (libstring) that the linker should search. |
Default
OFF |
The linker searches for standard libraries in standard directories. |
Description
This option tells the linker to search for a specified library when linking.
When resolving references, the linker normally searches for libraries in several standard directories, in directories specified by the L option, then in the library specified by the l option.
The linker searches and processes libraries and object files in the order they are specified. So, you should specify this option following the last object file it applies to.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
IDE Equivalent
Alternate Options
None