Hi,
Sure. The examples given in
https://code.google.com/p/tesseract-ocr/wiki/APIExample should
certainly work fine for g++ in Linux.
I'm guessing you're asking what build commands you need. It works in
quite a standard way, so nothing weird. Something like this should
work fine:
g++ -o myprogram myprogram.cpp -g -Wall -llept -ltesseract
If tesseract (or leptonica) is installed in a different place to the standard,
you can specify it like this:
g++ -o myprogram myprogram.cpp -g -Wall -I/home/nick/local/include/tesseract -L/home/nick/local/lib -llept -ltesseract
Let us know if you need anything more. I'll probably add these examples to the
wiki soon, thanks for the prompt :)
Nick