Project doesn't build in debug configuration

Hello everyone.
I use paltformIO on VS Code for a cpp project on Teensy 4.1
This project use Flexcan library for arduino. When I build the project in normal configuration, everything goes well but if I build in debug, I have an error when FlexCAN_T4 constructor function is called : “undefined reference to vtable for FlexCAN_T4_Base”.
Can this error be linked to platformio ?
Thank you