Please don't post to largely unrelated threads if you have simple compiler problems. I've split your posting from the (also *very* old) thread.
Your problem is simply a missing define you need to add to the compiler flags if you don't use the provided project/makefiles. IIRC it's -DWIN32