ethereum / aleth

Aleth – Ethereum C++ client, tools and libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmake: undefined reference to 'pthread_create'

jasonclinx opened this issue · comments

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.