I am using C++11 thread with my project, on runtime I am getting the followiung:
"Enable multithreading to use std::thread: Operation not permitted"
Reading other posts I have added -lpthread to link against the pthreads library, still I get the same error...
Compilation Snap
g++ -ggdb -ffunction-sections -O0 -lpthread -std=gnu++11 -DDEBUG -c HID.cpp -o Debug/HID.o -MD -MF Debug/HID.dep
How can I avoid the runtime exception? any caviats for using "-std=gnu++11" rather than "-std=c++11" ?