8 years, 11 months ago.

Virtual Function warning now appears?

I am migrating some code to include: https://developer.mbed.org/users/karelv/code/SD_USB_FS_HelloWorld/

importing the above, adding USBDevice library and compiling will cause the following warning below.

and having the compiler yell at me for virtual function overrides. This used to work but suddenly doesn't. Maybe has to do with an update to the USBMSD library recently?

Warning: Function "USBMSD::disk_read(std::uint8_t *, std::uint64_t, std::uint8_t)" is hidden by "USBFileSystem::disk_read" virtual function override intended? in "USBFileSystem/USBFileSystem.h", Line: 107, Col: 18

and then: Error: Object of abstract class type "USBSDFileSystem" is not allowed in "main.cpp", Line: 6, Col: 18

Question relating to:

SD USB MSD helloworld helloworld, MSD, SD, USB
Be the first to answer this question.