My problem is: If I compile and link my multithread application with c++11 threads on my own with my own makefile with GCC compiler (I work on Ubuntu), all work properly. Program run correctly.
(I use -pthreads and -std=c++11 and all work great)
But if I want create project in IDE (netbeans or QT with standard set on c++11) and compile my source code with makefile generated by IDE (simply click button "BUILD"), while running executive file I receive:
terminate called after throwing an instance of 'std::system_error' what(): Enable multithreading to use std::thread: Operation not permitted
I know that was answer about this error, but they was related to g++ compiler. My compiler work correctly, but i have problem with IDE. PS: In Netbeans I add -pthread to compile flags
-pthread
to the command line. Get Netbeans to print the command line it is invoking g++ with. – Praetorian