Most probable that error occurs because the FlashEFf2 component is not imported in the library.
We have an tutorial about how to use the component with external classes and you may wanna check it. It is located in the FlashEFf2 downloaded package "Tutorial Files" folder.