problem with creating a library

i just tried using both versions and still showing me the error

You need to post more details, then. For instance, what, exactly, is the source file for the Led class called? What is the header file called?