Ok, I added a -lcygwin -lg and it worked.. It still says no available ptys though.. No biggie.. It compiles well enough that I can start looking around..