avr linking with precompiled library #7005
Labels
Architecture: AVR
Applies only to the AVR microcontrollers (Uno, etc.)
Component: Compilation
Related to compilation of Arduino sketches
Component: Core
Related to the code for the standard Arduino API
Type: Bug
Hi,
I just tried the upcoming precompiled library feature. I love it, but I noticed a possible bug.
I created a sketch with my own 3 libraries included (HWLib HWLibDriver SiBase), but I kept getting undefined reference errors while linking.
While diving into the problem I noticed the reason:
Link command:
Error:
Notice that my libraries are included before the object files of the sketch itself.
Since ordering is very important during linking, this is causing the problem
Changing it to this fixes it:
I'm sorry if I am repeating a known bug.
Corjan
The text was updated successfully, but these errors were encountered: