Here you can find an example of a simple user application that uses tesseract. https://github.com/cppan/tesseract_example