C++11 thread Error

I copied the source example from http://en.cppreference.com/w/cpp/thread/thread/thread and created a binary file with it with no errors.
But when I run it, throws an exception that "Operation not permitted" and cause a core dump.
What's the problem?

Perhaps you're using gcc? It requires -pthread to compile programs that use std::thread
Yes, Exactly.
But what is pthread option?
Topic archived. No new replies allowed.