5.6.4.2 Libraries

Table 5-9. Libraries Category
OptionDescriptionCommand Line1
System LibrariesAdd libraries to be linked with the project files. You may add more than one.--library=name
Library directoriesAdd a library directory to the library search path. You may add more than one.--library-path="name"
Exclude Standard LibrariesCheck to not use the standard system startup files or libraries when linking. Only use library directories specified on the command line.

Uncheck to use the standard system startup files and libraries.

-nostdlib
Force linking of objects that might not be compatibleCheck to force linking of objects that might not be compatible. The linker will compare the project device to information contained in the objects combined during the link. If a possible conflict is detected, an error (in the case of a possible instruction set incompatibility) or a warning (in the case of possible register incompatibility) will be reported. Specify this option to override such errors or warnings.

Uncheck to not force linking.

--force-link

--no-force-link

Don’t merge I/O library functionsCheck to not merge I/O library functions. Do not attempt to conserve memory by merging I/O library function calls. In some instances the use of this option will increase memory usage.

Uncheck to merge I/O library functions to conserve memory.

--no-smart-io

--smart-io

  1. For details on linker command-line options, see MPLAB® XC32 Assembler, Linker and Utilities User’s Guide for PIC32A MCU.