adding only header (*.h) is not enough. You have to also add proper lib or cpp to your program in order to linker could see definitions of functions you are using in your program. To add lib, see the linker options, there has to be some place to include additional libraries.
You might write yourself from scratch or use Boost.Spirit[^] (or, if you prefer a C-like approach, the classical tools Flex[^] and Bison[^]).
Veni, vidi, vici.
This link may be of assistance, as you can see there are many possible contributors. Hope this helps. http://frickelblog.wordpress.com/2010/04/30/no-main-class-found/