aleth
aleth copied to clipboard
cmake: undefined reference to 'pthread_create'
Hi is there anyone encountering this error when building aleth? My build process stopped at ERROR and I found undefined reference to 'pthread_create'
from CMakeError.log.
How to fix this error?
You must link with pthread
, but it depends which target is failing.
If you'd like, I can edit the CMakeLists.txt so that the failure occurs at the configure stage, and warns the builder that they are missing pthread. Otherwise all will proceed normally until the linker attempts to locate something called "pthread_create" and fail at link time.