fht_log_out' referenced in section .text.startup' of C:\Users\george\AppData\Local\Temp\ccxX36WK.ltrans0.ltrans.o: defined in discarded section `.text' of sketch\fht_adc_serial.pde.cpp.o (symbol from plugin)
fht_log_out' referenced in section .text.startup' of C:\Users\george\AppData\Local\Temp\ccxX36WK.ltrans0.ltrans.o: defined in discarded section `.text' of sketch\fht_adc_serial.pde.cpp.o (symbol from plugin)
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
Can someone please help me figure it out i would very much appreciate it
i downloaded the new fht version 4 and started with that one the examples are the ones that came with it the fht_adc works kinda (can't read the garbage it shows in the serial monitor just shows garbage) no errors but i get the compile error on the fht_adc_serial one
Note that some of the Open Music Lab examples use Serial.write() to send binary data back to the computer for plotting, and this will look like garbage on the serial monitor.
The Serial Plotter can be used instead of the Serial Monitor (Tools menu), for plotting such data. The output protocol may have to be changed to CSV, as expected by Serial Plotter.
the link is correct it says version 3 on their site but the download file says fht4 so sorry for the confusion
i figured it has to do with the Serial.println because it wont error with Serial.write in the other file example
Arduino AVR Boards 1.6.12 and newer uses LTO(link time optimization) to significantly reduce memory usage in some cases but in other cases the optimization is too aggressive and breaks things as with the FHT library. Adding the used attribute tells the compiler not to discard fht_log_out.