Error:
/tmp/buildbf0c872c012dd1eee7874d3cf8e26fef.tmp/core/core.a(main.cpp.o): In function `main':
/home/meme/Arduino_Teensy/arduino-1.6.9/hardware/teensy/avr/cores/teensy3/main.cpp:21: undefined reference to `setup'
/home/meme/Arduino_Teensy/arduino-1.6.9/hardware/teensy/avr/cores/teensy3/main.cpp:23: undefined reference to `loop'
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.2 / 3.1.
Hi,
I'm going throught the online tutorial on audio and immediately I run into an error. This is the first sketch, automatically compiled via the audio Gui. It should play a file automatically. There are files on the sd card (of course )
https://www.pjrc.com/teensy/td_libs_Audio.html
I run Linux Mint - other example sketches ran fluently (leds, buttons etc) I also managed to play sound via other pre-existint sketches.
Greetz
dywen
/tmp/buildbf0c872c012dd1eee7874d3cf8e26fef.tmp/core/core.a(main.cpp.o): In function `main':
/home/meme/Arduino_Teensy/arduino-1.6.9/hardware/teensy/avr/cores/teensy3/main.cpp:21: undefined reference to `setup'
/home/meme/Arduino_Teensy/arduino-1.6.9/hardware/teensy/avr/cores/teensy3/main.cpp:23: undefined reference to `loop'
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.2 / 3.1.
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioPlaySdWav playSdWav1; //xy=218,161
AudioOutputI2S i2s1; //xy=421,179
AudioConnection patchCord1(playSdWav1, 0, i2s1, 0);
AudioConnection patchCord2(playSdWav1, 1, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=252,286
// GUItool: end automatically generated code
Hi,
I'm going throught the online tutorial on audio and immediately I run into an error. This is the first sketch, automatically compiled via the audio Gui. It should play a file automatically. There are files on the sd card (of course )
https://www.pjrc.com/teensy/td_libs_Audio.html
I run Linux Mint - other example sketches ran fluently (leds, buttons etc) I also managed to play sound via other pre-existint sketches.
Greetz
dywen