[CMake] Determining if the function pthread_create exists in the pthreads failed with the following output:

Rolf Eike Beer eike at sf-mail.de
Tue Dec 15 17:21:49 EST 2015


Am Dienstag, 15. Dezember 2015, 21:09:36 schrieb sothy shan:
> Hello,
> 
> I am compiling the source code from
> https://github.com/flowgrammable/onf2013/
> My platform is
> cmake version 2.8.12.2
> Ubunutu 14.04

> /usr/bin/ld: cannot find -lpthreads

This shouldn't be a problem, as that library is call pthread on Linux. I hope 
this is just calling find_package(Threads), which should handle all this.

Greetings,

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151215/6aa43e71/attachment.sig>


More information about the CMake mailing list