Skip to content

Code fails to compile #2

@MatthewCerza

Description

@MatthewCerza

Hello VinDuv, I'm trying to use this library with an Arduino UNO R3 to make a physical controller connected to an Arduino that can communicate with the Switch. Before trying to modify the swsh.c file to take input instead of perform automated tasks I decided I wanted to try and compile the code into the .hex files like you stated in the readme but I get this error. Do you have any insight?

avr-gcc -mmcu=atmega328p -flto -fuse-linker-plugin -Wl,--gc-sections -o src/swsh.elf src/swsh/swsh.o src/lib/automation.o src/lib/automation-utils.o src/lib/user-io.o
/usr/local/opt/avr-binutils/bin/avr-ld: /var/folders/zb/bwstvvb94t92w5mkj5wxg3hr0000gn/T//swsh.elf.yK8ICC.ltrans0.ltrans.o: in function move_in_circles': <artificial>:(.text+0xbb2): undefined reference to pause_automation'
/usr/local/opt/avr-binutils/bin/avr-ld: /var/folders/zb/bwstvvb94t92w5mkj5wxg3hr0000gn/T//swsh.elf.yK8ICC.ltrans0.ltrans.o: in function go_to_nursery_helper': <artificial>:(.text+0xc2c): undefined reference to pause_automation'
/usr/local/opt/avr-binutils/bin/avr-ld: /var/folders/zb/bwstvvb94t92w5mkj5wxg3hr0000gn/T//swsh.elf.yK8ICC.ltrans0.ltrans.o: in function main': <artificial>:(.text.startup+0x128): undefined reference to pause_automation'
/usr/local/opt/avr-binutils/bin/avr-ld: :(.text.startup+0x260): undefined reference to pause_automation' /usr/local/opt/avr-binutils/bin/avr-ld: <artificial>:(.text.startup+0x3ae): undefined reference to pause_automation'
collect2: error: ld returned 1 exit status
make: *** [src/swsh.elf] Error 1

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions