florisvanvugt
Member
Hello everyone! I have a question about compiling the Audio library. I am working on a project that includes some Audio code. When I compile this portion of the Audio library, I get the error below:
I seem to get this error both with the Audio library as included in the Teensyduino installation, as well as with the Audio library downloaded directly from PaulStoffregen github.
Any idea what I am doing wrong?
Many thanks in advance!
Code:
$ arm-none-eabi-g++ -Wall -g -Os -mthumb -ffunction-sections -fdata-sections -nostdlib -MMD -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DTEENSYDUINO=124 -DF_CPU=48000000 -Isrc -Iteensy3 -D__MK20DX256__ -mcpu=cortex-m4 -DUSING_MAKEFILE -std=gnu++0x -felide-constructors -fno-exceptions -fno-rtti -Ilibraries/SD/ -Ilibraries/Audio/ -Ilibraries/Wire/ -Ilibraries/SPI/ -Ilibraries/SerialFlash/ -o "libraries/Audio/control_ak4558.o" -c "libraries/Audio/control_ak4558.cpp"
In file included from libraries/Wire/Wire.h:26:0,
from libraries/Audio/control_ak4558.cpp:10:
libraries/Wire/WireKinetis.h: In constructor 'constexpr TwoWire::TwoWire(uintptr_t, const TwoWire::I2C_Hardware_t&)':
libraries/Wire/WireKinetis.h:95:46: error: call to non-constexpr function 'Stream::Stream()'
: port_addr(port_addr), hardware(myhardware) {
^
I seem to get this error both with the Audio library as included in the Teensyduino installation, as well as with the Audio library downloaded directly from PaulStoffregen github.
Any idea what I am doing wrong?
Many thanks in advance!