After purging the package libpthread-dev the above code doesn't make g++ yield that error message. The program actually works like it's supposed to after being compiled.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com