Hello,
I get following message when I run the Makefile in cores/teensy3/ and it is configured to use arm-none-eabi-gcc-7.2.1:
pins_teensy.o: In function `detachInterrupt':
/Users/martinpavlas/Work/hardware/midi-controller/cores/teensy3/pins_teensy.c:258: undefined reference to `getIsrTable'
pins_teensy.o: In function `attachInterrupt':
/Users/martinpavlas/Work/hardware/midi-controller/cores/teensy3/pins_teensy.c:227: undefined reference to `getIsrTable'
collect2: error: ld returned 1 exit status
make: *** [main.elf] Error 1
The getIsrTable is defined as inline and it looks like linker will not find the symbol. When using gcc 5.4.1 that comes with Arduino, it links objects no problem.
Changing inline to static fixes the issue, however, it might not be appropriate. Does anybody have any suggestions how to resolve this without changing teensy source code?
thanks
I get following message when I run the Makefile in cores/teensy3/ and it is configured to use arm-none-eabi-gcc-7.2.1:
pins_teensy.o: In function `detachInterrupt':
/Users/martinpavlas/Work/hardware/midi-controller/cores/teensy3/pins_teensy.c:258: undefined reference to `getIsrTable'
pins_teensy.o: In function `attachInterrupt':
/Users/martinpavlas/Work/hardware/midi-controller/cores/teensy3/pins_teensy.c:227: undefined reference to `getIsrTable'
collect2: error: ld returned 1 exit status
make: *** [main.elf] Error 1
The getIsrTable is defined as inline and it looks like linker will not find the symbol. When using gcc 5.4.1 that comes with Arduino, it links objects no problem.
Changing inline to static fixes the issue, however, it might not be appropriate. Does anybody have any suggestions how to resolve this without changing teensy source code?
thanks