C++11 thread Error

Hi.
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?

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