Problem with compiling simple haiku program

Hi.
I’ve read Lessons 14 by DarkWyrm (http://darkwyrm.beemulated.net/downloads/pdf/Learning%20to%20Program%20With%20Haiku%20Lesson%2014.pdf)
and I tried to compile the program as he says (sorry for bad english xD).
I had a lot of problems, and I wrote them here:
https://www.haiku-os.org/blog/darkwyrm/2010-04-14_lesson_14_our_first_gui_program#comment-26609

(I didn’t want to double-post)

Thanks to anyone who wants to answer!

(again, sorry for bad english xD)

check out:

http://haikuware.com/directory/view-details/system-files/tracker-add-ons/file-filter