Menu

#102 Overriding library modules fails with ICCAVR

open
5
2009-03-27
2009-03-27
Harald Kipp
No

In the link list created by nut/app/Makerules.avr-icc[7] the object nutinit.o comes first, followed by the libraries, followed by the application's object files.

When any of the libraries references any other library, which is completely satisfied by the app's object files, then 'multiple defines' are reported. This happens, for example, when a library module is completely copied to application code for testing purposes.

The order of linked modules should be changed in the following way
1. nutinit
2. application object files
3. libraries

Discussion


Log in to post a comment.

MongoDB Logo MongoDB