I tried to create two instances of SD library
if ( ! file.open(SD.root, filepath, mode))
if ( ! file.open(root, filepath, mode))
/** * To use multiple SD cards set USE_MULTIPLE_CARDS nonzero. * * Using multiple cards costs about 200 bytes of flash. * * Each card requires about 550 bytes of SRAM so use of a Mega is recommended. */#define USE_MULTIPLE_CARDS 0
undefined reference to 'vtable for SdFile'
/** * Set DESTRUCTOR_CLOSES_FILE nonzero to close a file in its destructor. * * Causes use of lots of heap in ARM. */#define DESTRUCTOR_CLOSES_FILE 1
Is the error related to Code::blocks ?