i have difficulties in using LZMA SDK in my application.

I would like to create a kind of single file compression tool. I dont need any directory support, just need only the LZMA2 stream. But i have no idea on how LZMA SDK is to be used for this.

Please can anyone give me a little example on how the LZMA SDK can be used under C++?