3
If in the main.cpp
I use the library thread of std
, to compile I have to use the following command:
g++ main.cpp -pthread
And even applies to Ang.
This is the only case I know of the standard library where you have to add some extra option when compiling. Why you have to add the option -pthread
? Why can’t it be like the other libraries in std
? I’ve looked into it, but I can’t find anything useful.