I have code which uses multithread ability of C++11. I am able to execute the code in the terminal using the comm
and:
g++ main.cpp -o main -pthread -std=c++11
But I am unable to execute the same code from the CodeBlocks. Whenever I attempt to do it, it throws the error : terminate called after throwing an instance of std::system_error what(): Enable multithreading....
I know that Codeblocks, is building the code without '-pthread' in it, but I don't know to add that in CodeBlocks.