Change Link Order

At the present time, there is no mechanism to directly change the link order of files. However, there is a workaround that involves creating logical folders inside the Object Files or Library Files folders.

1

Create as many logical folders under Linker Files or Object Files as you have files with link order dependencies.

2

Give these folders identical names, but add an incremental digit to the end. For example: MyFolder1, MyFolder2, etc.

3

Place files with link order dependencies inside the folder with the number corresponding to the desired link order position. The linker will link items inside the folders in increasing order of the digits in the logical folder names.

This section will be updated when a more elegant solution is implemented in the near future.

© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.