Small SDCard library

What can i do to resolve the compilation problem?

Are you sure that you don't have another library of the same name? The SdCard class does have a method called begin().