cppquiz icon indicating copy to clipboard operation
cppquiz copied to clipboard

Compiler Explorer's link in 339 uses -lpthread instead of -pthread

Open tocic opened this issue 1 year ago • 2 comments

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.

image

tocic avatar Mar 15 '23 09:03 tocic

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.

knatten avatar Mar 15 '23 11:03 knatten

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.

knatten avatar Mar 17 '23 07:03 knatten

MSVC execution is now back on CE! So we can finally fix this now.

knatten avatar Jun 23 '24 11:06 knatten