cppquiz
cppquiz copied to clipboard
Compiler Explorer's link in 339 uses -lpthread instead of -pthread
The 339th question's explanation contains an additional Compiler Explorer link. That link uses -lpthread
flag which is fine for gcc
, but produces a warning in clang
. Consider using -pthread
instead. See https://stackoverflow.com/q/2391194 for details.
Thanks for reporting! I'll leave this open until it's possible to execute programs on msvc on CE again. Right now I 'm unable to create a new link that also executes the code on msvc. So let's just live with this warning in the mean time.
https://github.com/compiler-explorer/compiler-explorer/issues/4769 is the issue we're waiting for. If someone notices it being closed before I do, feel free to ping me in this thread.
MSVC execution is now back on CE! So we can finally fix this now.