| majidkamali1370 (202) | |
|
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 | |
|
|
|
| Cubbi (1583) | |
Perhaps you're using gcc? It requires -pthread to compile programs that use std::thread
| |
|
|
|
| majidkamali1370 (202) | |
|
Yes, Exactly. Thanks. But what is pthread option? | |
|
|
|