Use platformIO building error

When I change the project to platform IO, there is build error

.pio/build/esp32dev/src/main.cpp.o:(.literal._Z4loopv+0x15c): undefined reference to `mDashInit’

I use the updated Arduino IDE also have problem.

Library mDash has been declared precompiled:
Using precompiled library in /Users/XXXX/Documents/Arduino/libraries/mDash/src/esp32
The plaform does not support ‘compiler.libraries.ldflags’ for precompiled libraries.
sketch/test01.ino.cpp.o:(.literal._Z5setupv+0x90): undefined reference to `mDashInit’

If using platformio. you need to add the static library to the platformio.ini

build_flags = -L.pio/libdeps/YOURENVIRONMENTDIRECTORY/mDash/src/esp32/ -llibmDash -DCORE_DEBUG_LEVEL=5