Cant Compile Minimal Sketch arduino esp32

I try to compile minimal sketch esp32-arduino. The library that I use is 1.2.3 and its, happen

Arduino: 1.8.5 (Windows 10), Board: “ESP32 Dev Module, Disabled, Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None”

Archiving built core (caching) in: C:\Users\zthan\AppData\Local\Temp\arduino_cache_672814\core\core_esp32_esp32_esp32_PSRAM_disabled,PartitionScheme_min_spiffs,CPUFreq_240,FlashMode_qio,FlashFreq_80,FlashSize_4M,UploadSpeed_921600,DebugLevel_none_2af702cb5df31555b433bd8f6d949740.a
sketch\Minimal.ino.cpp.o:(.literal._Z5setupv+0x2c): undefined reference to `mDashInit’

sketch\Minimal.ino.cpp.o: In function `setup()’:

C:\Users\zthan\OneDrive\Documents\Arduino\libraries\mDash\examples\Minimal/Minimal.ino:26: undefined reference to `mDashInit’

collect2.exe: error: ld returned 1 exit status

Arduino 1.8.5 does not know how to find libmDash.a.
Arduino 1.8.9 and 18.10 work as expected.

1 Like

thank you @nliviu work perfectly.

Using Arduino IDE 1.8.12, the issue persists. Should I install previous versions?

The minimal example compiles with 1.8.11, but not with 1.8.12 (undefined reference mDashInit).