How do I sent a SMS message through my phone?

And When I compile the file, it gave me an error "SSerial2Mobile was not declared in this scope".

Is that the only error it gives, or simply the last error?