#Weird pthread link error

21 messages · Page 1 of 1 (latest)

remote mural
patent viperBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

wanton aurora
#

Did you pass -pthread when linking?

#

Also:

patent viperBOT
#
HolyBlackCat
Please Do Not Send Screenshots or Photos!

They're hard to read and prevent copying and pasting.

remote mural
still cedar
#

show link command?

wanton aurora
#

Don't see -pthread in there

remote mural
still cedar
#
find_package(Threads REQUIRED)

target_link_libraries(whatever PRIVATE Threads::Threads)
#

is how you do it portably in cmake

remote mural
#

doing that

#

i started getting this error since today morning
after a full system update and a restart

#

if that could have anything to do with this

wanton aurora
#

Did you try rebuilding everything?

remote mural
#

yeah multiple times

remote mural
#

could rebuilding gcc fix this?

remote mural
#

!close

patent viperBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

still cedar