WMXZ-EU / MTP_t4

MTP Responder for Teensy 3.x and 4.x
MIT License
22 stars 10 forks source link

Link error: `undefined reference to 'vtable for MTPStorageInterface'` #20

Closed SmittyHalibut closed 2 years ago

SmittyHalibut commented 2 years ago

Not sure why this just started popping up, but I'm getting a link error:

.pio/build/teensy41/src/main.cpp.o: In function `MTPStorageInterface::MTPStorageInterface()':
/home/mark/src/SOAR/SOAR-Code/SOAR-v2-Code/lib/MTP_t4/src/Storage.h:87: undefined reference to `vtable for MTPStorageInterface'
collect2: error: ld returned 1 exit status
*** [.pio/build/teensy41/firmware.elf] Error 1

Found the solution here: https://stackoverflow.com/a/57504289

It's a simple one to implement, so I submitted a pull request: https://github.com/WMXZ-EU/MTP_t4/pull/19

WMXZ-EU commented 2 years ago

pull request merged