7" esp32 s3 won't compile with audio library
My project has BLEdevice, WIFI, ESP32time, preferences and sntp and compiles fine. When I add the audio library you provided in another discussion the compiler stops with an error. The supporting libraries for audio, sd, fs and spi are not compile ok without audio but I include audio I get this error.
Any help would be appreciated.
Bribur
"In file included from C:\Users\Brian\Documents\SynologyDrive\Programming\Arduino\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2.ino:208:
C:\Users\Brian\Documents\SynologyDrive\Programming\Arduino\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2\touch.h: In function 'bool touch_touched()':
C:\Users\Brian\Documents\SynologyDrive\Programming\Arduino\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2\touch.h:166:20: error: reference to 'map' is ambiguous
touch_last_x = map(ts.points[0].x, TOUCH_MAP_X1, TOUCH_MAP_X2, 0, lcd.width() - 1);
^~~
In file included from c:\users\brian\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\include\c++\8.4.0\map:61,
from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\BLE\src/BLEDevice.h:14,
from C:\Users\Brian\Documents\SynologyDrive\Programming\Arduino\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2.ino:13:
c:\users\brian\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\include\c++\8.4.0\bits\stl_map.h:100:11: note: candidates are: 'template class std::map'
class map
^~~
In file included from C:\Users\Brian\AppData\Local\Temp\arduino\sketches\135AD65BD2B2558CD85C9D0993C84EF0\sketch\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2.ino.cpp:1:
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:153:6: note: 'long int map(long int, long int, long int, long int, long int)'
long map(long, long, long, long, long);
^~~
In file included from C:\Users\Brian\Documents\SynologyDrive\Programming\Arduino\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2.ino:208:
C:\Users\Brian\Documents\SynologyDrive\Programming\Arduino\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2\touch.h:167:20: error: reference to 'map' is ambiguous
touch_last_y = map(ts.points[0].y, TOUCH_MAP_Y1, TOUCH_MAP_Y2, 0, lcd.height() - 1);
^~~
In file included from c:\users\brian\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\include\c++\8.4.0\map:61,
from C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\BLE\src/BLEDevice.h:14,
from C:\Users\Brian\Documents\SynologyDrive\Programming\Arduino\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2.ino:13:
c:\users\brian\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\include\c++\8.4.0\bits\stl_map.h:100:11: note: candidates are: 'template class std::map'
class map
^~~
In file included from C:\Users\Brian\AppData\Local\Temp\arduino\sketches\135AD65BD2B2558CD85C9D0993C84EF0\sketch\BLE_client_myUUID_TouchScreen_readValue_wri_TiClk2PrfWifi_Aud2.ino.cpp:1:
C:\Users\Brian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:153:6: note: 'long int map(long int, long int, long int, long int, long int)'
long map(long, long, long, long, long);
^~~
Comments
Hello @bribur ,
Thank you for your information.
May I kindly ask did you use the audio from this post: https://forum.elecrow.com/index.php?p=/discussion/662/header-files-in-examples-from-wiki-for-7-0inch-wizee/p1 ?
Thanks for the reply. Unfortunately, that is the one I'm using, version shown below. The A-7.0-AUDIO.ino alone does compile. The SPI ,FS and SD libraries also compile with my project.
*
* Created on: Oct 26.2018
*
* Version 2.0.6c
* Updated on: Sep 05.2022
* Author: Wolle (schreibfaul1)