Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 'undefined reference to' error building with gcc-avr 7 #42

Closed
paulkitt opened this issue Mar 31, 2018 · 1 comment
Closed

Getting 'undefined reference to' error building with gcc-avr 7 #42

paulkitt opened this issue Mar 31, 2018 · 1 comment

Comments

@paulkitt
Copy link

Using avr-gcc-7.3.0-1 and avr-libc 2.0.0-1 on Arch Linux .

When building the with make -f Makefile.lufa:

obj_ergodox_lufa/ergodox.o: In function `ergodox_blink_all_leds':                                                                                                                                                   
./tmk_keyboard/keyboard/ergodox/ergodox.c:70: undefined reference to `ergodox_led_all_off'
./tmk_keyboard/keyboard/ergodox/ergodox.c:71: undefined reference to `ergodox_led_all_set'
./tmk_keyboard/keyboard/ergodox/ergodox.c:72: undefined reference to `ergodox_led_all_on'
./tmk_keyboard/keyboard/ergodox/ergodox.c:74: undefined reference to `ergodox_led_all_off'
obj_ergodox_lufa/led.o: In function `led_set':
./tmk_keyboard/keyboard/ergodox/led.c:31: undefined reference to `ergodox_right_led_1_on'
./tmk_keyboard/keyboard/ergodox/led.c:45: undefined reference to `ergodox_right_led_2_on'
./tmk_keyboard/keyboard/ergodox/led.c:52: undefined reference to `ergodox_right_led_3_on'
./tmk_keyboard/keyboard/ergodox/led.c:33: undefined reference to `ergodox_right_led_1_off'
./tmk_keyboard/keyboard/ergodox/led.c:47: undefined reference to `ergodox_right_led_2_off'
./tmk_keyboard/keyboard/ergodox/led.c:54: undefined reference to `ergodox_right_led_3_off'
collect2: error: ld returned 1 exit status
make: *** [../../tmk_core/rules.mk:545: ergodox_lufa.elf] Error 1
@marknsikora
Copy link
Collaborator

Fixed in 5f4412a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants